previous
|
start
|
next
Deadlocks
Not enough to synchronize
add
,
removeFirst
if (!queue.isFull()) queue.add(...);
can still be interrupted
Must move test inside
add
method
What should
add
do if queue is full?
previous
|
start
|
next