Producer-Consumer Problem Version 0 |
|
👤 Author: by 371516709qqcom 2016-11-23 09:29:51 |
Readme: The version code fixes the problem of disorder print, which results from the fact that the statement of System.out.printf() isn’t synchronized. so i move coresponding statements to the synchronized method, then this problem is solved smoothly. ^_^ Maybe there is version 3, who knows, if i am available and don’t forget this problem. *_*
package question;
/**
* A simple program to simulate the typical process of producer and consumer
* @author crystal sugar
* @v