生产者消费者模式 (在已有线程下不断生产不断消费)

生产者:

消费者:

main方法:

打印输出:

原文地址:https://www.cnblogs.com/tian1993/p/9914070.html