[concurrency-interest] when to use lock and when to use lockInterruptibly

Peter Veentjer - Anchor Men p.veentjer at anchormen.nl
Tue Nov 29 06:15:20 EST 2005


When should a lockInterruptibly be used instead of a lock? I guess it
depends on the lock implementation if it supports interruption. Is this
correct? And wouldn`t it be better to always you the lockInterruptibly
(although you have to deal with an InterruptedException).

Met vriendelijke groet,

Peter Veentjer
Anchor Men Interactive Solutions - duidelijk in zakelijke
internetoplossingen

Praediniussingel 41
9711 AE Groningen

T: 050-3115222
F: 050-5891696
E: p.veentjer at anchormen.nl
I : www.anchormen.nl



More information about the Concurrency-interest mailing list