Synchronization Examples

This section shows several examples of the synchronization mechanisms available in the CMS environment. The examples include the following:
  • Accessing a critical section protected by a mutex
  • Replacing OS Wait/Post macros with a semaphore
  • Going beyond Wait/Post using semaphores
  • Producer/Consumer example using mutexes and condition variables.