Java / Concurrent collections
Is BlockingQueue implementations are thread safe?
Yes, BlockingQueue implementations are thread-safe. Even all the queue method action and its effects are atomic.
However, the bulk Collection operations addAll, containsAll, retainAll and removeAll are not necessarily performed atomically unless specified otherwise in an implementation.
More Related questions...