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).
- Task A starts the request by:
- Setting the parameters to be used by task B
- Resuming task B
- Issuing the SUSPEND call.
- Task B performs the action by:
- Getting the parameters
- Performing the action
- Setting the results
- Terminating (or waiting for new work).
- Task A ends the interaction by:
- Getting the results left by task B.
This sequence looks like:

Ignoring the Resume and Suspend, the execution amounts to:

where these actions are always sequential.