12.BlockingQueue
Java · 5 notes
- 6.12 ArrayBlockingQueuehistorical
ArrayBlockingQueue is a bounded blocking queue backed by an object array. These notes trace waiting and notification through its shared lock.
- 6.27 BlockingQueuehistorical
BlockingQueue provides a thread-safe blocking-queue interface. These notes examine enqueue and dequeue operations, waiting, timeouts, and failure behaviors.
- 6.35 LinkedBlockingQueuehistorical
LinkedBlockingQueue uses a singly linked list with separately coordinated reads and writes. These notes trace waiting and notification through its node structure.
- 6.41 PriorityBlockingQueuehistorical
PriorityBlockingQueue uses a binary heap for a priority-ordered blocking queue. These notes examine its array representation, ordering, and waiting on an empty queue.
- 6.42 SynchronousQueuehistorical
SynchronousQueue stores no elements, so writes must pair with reads or wait. These notes trace the process through its transfer structures.