| | Unix Multi-Process Programming and Inter-Process Communications (IPC) |
 | | For example, if the program opens a file and writes some data to it, and two processes try to run the program at the same time, the contents of the file might be ruined in an unpredictable way. |
 | | A second program, named "queue_reader", may be run that reads the messages from the queue, and does something with them (in our example - just prints their contents to standard output). |
 | | A semaphore set is a structure that stores a group of semaphores together, and possibly allows the process to commit a transaction on part or all of the semaphores in the set together. |
| users.actcom.co.il /~choo/lupg/tutorials/multi-process/multi-process.html (10743 words) |