Fat lock

A fat lock is a more intelligent, and consequently more complex, lock implementation than a thin lock. The implementation usually involves putting threads to sleep when they are waiting for the lock and keeping a priority queue of candidates who want the lock. Fat locks are more optimal for frequently contended locks or locks that are held for a long time, since they are less CPU-intensive.

See also Thin lock.

Get Oracle JRockit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.