10.2.1 Common methods to communication
To difine a data in sender and the receiver read the data. There
must be a flag to indicate the data is valid or has been read.
Case Study: FlagComm.java
wait() and notify() of Object
Every object can have a thread pool. A thread can call wait()
to join the pool and call notify() to leave the pool.
Case Study: WaitComm.java