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.
The following demo uses semaphores and limits the number of simultaneously executed threads to two.
The following demo uses condition variables to manage buffer input and output.
The following demo displays messages sent from the thread.
In the following demo, the main function signals an event, and then the thread waits for the event to signal.
2013-05-08 Automated cleanup pass.
2013-03-20 Converted to HTML.