摘要:
1 import java.util.concurrent.ArrayBlockingQueue; 2 3 import java.util.concurrent.BlockingQueue; 4 5 import java.util.concurrent.ExecutorService; 6 7 import java.util.concurrent.Executors; 8 9 10 11 /** 12 13 本例介绍一个特殊的队列:BlockingQueue,如果BlockQueue是空的,从BlockingQueue取东西的操作将会被阻断进入... 阅读全文