CNE Workbenches

Synchronization in Centralized Operating Systems


Semaphore-based Solution to the Producer-Consumer Problem
This workbench demonstrates how semaphores can be used to solve the classic producer-consumer problem.

Monitor-based Solution to the Producer-Consumer Problem
The producer-consumer problem can also be solved using monitors as demonstrated by this workbench.

Message Passing-based Solution to the Producer-Consumer Problem
When there is no shared memory between the producer and the consumer, message passing can be used to synchronize the producer and the consumer as shown by this workbench.

Semaphore-based Solution to the Readers/Writers Problem
Watch an animation of the readers/writers problem with semaphores.

Monitor-based Solution to the Readers/Writers Problem
See how monitors can be used to solve the readers/writers problem.

Message Passing-based Solution to the Readers/Writers Problem
This workbench demonstrates how message passing can be used to solve the readers/writers problem.


Last updated 1/7/97.