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.

$CAFE_ROOT/system/src/demo/os/Synchronizer/usage_of_mutex_on_1core.c

Demo: Demonstrate Usage of OSSemaphore on One Core

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

$CAFE_ROOT/system/src/demo/os/Synchronizer/usage_of_semaphore_on_1core.c

Demo: Demonstrate Usage of Condition Variables on One Core

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

$CAFE_ROOT/system/src/demo/os/Synchronizer/usage_of_cond_on_1core.c

Demo: Demonstrate Usage of Message Queues on One Core

The following demo displays messages sent from the thread.

$CAFE_ROOT/system/src/demo/os/Synchronizer/usage_of_message_on_1core.c

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.

$CAFE_ROOT/system/src/demo/os/Synchronizer/usage_of_event_on_1core.c

Revision History

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


CONFIDENTIAL