等待和唤醒线程

等待和唤醒线程

在Object类中

阻塞队列唤醒等待机制(视频外补充)

阻塞队列继承结构

graph LR
	A(Iterable 接口)-->B(Collection 接口)-->D(Queue 接口)-->E(BlockingQueue 接口)-->F(ArrayBlockingQueue 实现类) & G(LinkedBlockingQueue 实现类)

BlockingQueue的核心方法

常见的BlockingQueue