ProducerConsumerクラス
producerConsumer
インスタンス作成
MyQueue
データ出入
Synchronized void put(int n)データ入 55
Synchronized int take() データ出 81
Producer(extends Thread)
生産
void run() 49
void sleepRandomly() 64
int produce(int n) 52
Consumer(extend Thread)
消費
void run() 78
void sleepRandomly() 94
void consume(int n) 85