Previous Contents Next

Plan of the Chapter

The first section details the possible interactions between threads, and proceeds with describing module Thread, and showing how to execute many processes in the same application.

The second part deals with the synchronization between threads by mutual exclusion (Mutex module), and with waiting for conditions (Condition module). Two complete examples show the difficulties inherent to this module.

The third section explains the mode of communication by events provided by the Event module and the new possibilities which is provides.

The fourth section concludes the chapter with the implementation of a shared queue for the different counters at a post office.

Previous Contents Next