In-depth understanding of concurrent programming-blocking queue

This article is a reading note, "The Art of Java Concurrent Programming"

1. What is a blocking queue?

2. Introduce the blocking queue in java

  • ArrayBlockingQueue: A bounded blocking queue composed of array structures.
  • LinkedBlockingQueue: A bounded blocking queue composed of a linked list structure.
  • PriorityBlockingQueue: An unbounded blocking queue that supports prioritization.
  • DelayQueue: An unbounded blocking queue implemented using priority queues.
  • SynchronousQueue: A blocking queue that does not store elements.
  • LinkedTransferQueue: An unbounded blocking queue composed of a linked list structure.
  • LinkedBlockingDeque: A bidirectional blocking queue composed of a linked list structure.

2.1 ArrayBlockingQueue

all

Published 37 original articles · won praise 6 · views 4629

Guess you like

Origin blog.csdn.net/littlewhitevg/article/details/105623362