Concurrent Collections Flashcards

1
Q

This interface extends the Queue interface. If the queue is empty, it blocks until an element is inserted, and if the queue is full, it blocks until an element is remmoved.

A

java.util.concurrent.BlockingQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This class provides a fixed size array based concrete implementation of the BlockingQueue interface.

A

java.util.concurrent.ArrayBlockingQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This class provides a linked-list based implementation of the BlockingQueue interface.

A

java.util.concurrent.LinkedBlockingQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This class implements BlockingQueue and consists of elements that are of type Delayed. An element can be retrieved from this queue only after its delay period.

A

java.util.concurrent.DelayQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Equivalent to java.util.PriorityQueue, but implements the BlockingQueue interface.

A

java.util.concurrent.PriorityBlockingQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This class implements BlockingQueue. In this container, each insert() by a thread blocks for a corresponding remove() by another thread and vice versa.

A

java.util.concurrent.SynchronousQueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Analogous to Hashtable, but with safe concurrent access and updates.

A

java.util.concurrent.ConcurrentHashMap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Analogous to TreeMap, but provides safe concurrent access and updates.

A

java.util.concurrent.ConcurrentSkipListMap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Analogous to TreeSet, but provides safe concurrent access and updates.

A

java.util.concurrent.ConcurrentSkipListSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Similar to ArrayList, but provides safe concurrent access. When the ArrayList is updated, it creates a fresh copy of the underlying array.

A

java.util.concurrent.CopyOnWriteArrayList

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A Set implementation, but provides safe concurrent access and is implemented using CopyOnWriteArrayList. When the container is updated, it creates a fresh copy of the underlying array.

A

java.util.concurrent.CopyOnWriteArraySet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly