[concurrency-interest] Is LinkedBlockingQueue.isEmpty() thread safe?

Szabolcs Ferenczi szabolcs.ferenczi at gmail.com
Thu Apr 19 16:11:16 EDT 2007


LBQ is meant to be a shared data structure used by concurrent threads.
It has a method: isEmpty() with the following documentation:

"Returns true if this collection contains no elements."

Is it thread safe?

Best Regards,
Szabolcs


More information about the Concurrency-interest mailing list