|
![](/i/fill.gif) |
clipka wrote:
> I guess timing out on acquiring a lock would constitute a variant of 2)
> in theory, right?
Yes. In that case, you're not "holding" the locks, as you'll release them to
prevent a deadlock.
> Also note that 3) only works to prevent deadlocks if acquiring multiple
> locks at once is an atomic operation.
Yes, that's the idea. It's pretty simple to set up an atomic-lock mechanism
if you have a complete list of all possible locks up front.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
![](/i/fill.gif) |