[concurrency-interest] Measuring lock contention with ThreadMXBean

Joseph Seigh jseigh_cp00 at xemaps.com
Wed Mar 28 06:00:59 EDT 2007


I was using ThreadMXBean to compare the lock usage of some collections,
lock based and lock-free.  The lock-free one I wrote spends most of its
time blocked on locks according to ThreadMXBean.   So if you are *not*
using locks, how do you figure out which locks you are blocking on?

--
Joe Seigh


More information about the Concurrency-interest mailing list