public class EatText
- extends Object
This class shows how to use a semaphore to make sure that the consumer
never eats letters before the producer
moreText has stored them in shared memory.
One producer produces text and several consumers eat it.
This program in inspired in Wiki && Tanembaum Operating Systems 2ed.
- See Also:
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static void main(String args)
- Main program.