Chapter 10 so that it would use a message queue rather than a counting semaphore. State all your assumptions.
2. Suppose that you want to synchronize the operation of two threads by using a message queue. Describe what you would have to do in order to make certain that the threads take turns sharing the processor, i.e., thread 1 would access the processor, then thread 2, then thread 1, and so on.