[concurrency-interest] Is LinkedBlockingQueue.isEmpty() threadsafe?
brian at quiotix.com
Sun Apr 22 16:51:36 EDT 2007
> Would your monitoring component call isEmpty() in a busy loop or
> rather occasionally, inside an `if' statement?
Likely in response to a request by a management agent, which might be
initiated by a user running jconsole, or a management station
periodically gathering statistics. The request would arrive at a
management entity like a JMX MBean (are you familiar with JMX, jconsole,
etc?) The MBean getter (isWorkQueueEmpty(), getWorkQueueSize()) would
be called from a thread managed by the JMX transport.
More information about the Concurrency-interest