The normal synchronization protocol

In the normal case, synchronization involves two tasks and three operations.

In the following sample operations, the tasks are A (the task that requests a service) and B (the task that processes a request from task A).
  1. Task A starts the request by:
    • Setting the parameters to be used by task B
    • Resuming task B
    • Issuing the SUSPEND call.
  2. Task B performs the action by:
    • Getting the parameters
    • Performing the action
    • Setting the results
    • Terminating (or waiting for new work).
  3. Task A ends the interaction by:
    • Getting the results left by task B.

This sequence looks like:

The picture shows the sequence described in the preceding list. The sequence for Task A is: set parameters; resume Task B; suspend; get results. The sequence for Task B is: get parameters; process request; set results; resume Task A; detach.

Ignoring the Resume and Suspend, the execution amounts to:

The picture shows the following sequence: set parameters; get parameters; process request; set results; get results.

where these actions are always sequential.



dfha3c0080.html | Timestamp icon Last updated: Monday, 5 June 2017