[concurrency-interest] difference latch and lock

Peter Veentjer alarmnummer at gmail.com
Wed Aug 30 16:14:20 EDT 2006


Who can tell me what the difference between a Latch and a Lock is. I
have read multiple times that a Latch is considered a more lightweight
lock than the lock (maybe only in the context of databases and heavy
weight locks).

But in Java all Locks and synchronized blocks are lightweight.. so are
there differences?


More information about the Concurrency-interest mailing list