Thread Synchronizers

Executing Thread synchronizers on One Core

Demo: Demonstrate Usage of OSMutex on One Core

The following demo adds data to the array from multiple threads and displays ascending sorting results. Adding data to the array and sorting are protected by mutex and performed exclusively.


Demo: Demonstrate Usage of OSSemaphore on One Core

The following demo uses semaphores and limits the number of simultaneously executed threads to two.


Demo: Demonstrate Usage of Condition Variables on One Core

The following demo uses condition variables to manage buffer input and output.


Demo: Demonstrate Usage of Message Queues on One Core

The following demo displays messages sent from the thread.


Demo: Demonstrate Usage of OSEvent on One Core

In the following demo, the main function signals an event, and then the thread waits for the event to signal.


Revision History

2013-05-08 Automated cleanup pass.
2013-03-20 Converted to HTML.