POV-Ray : Newsgroups : povray.off-topic : Locking references : Re: Locking references Server Time
5 Sep 2024 03:18:21 EDT (-0400)
  Re: Locking references  
From: Darren New
Date: 9 Nov 2009 17:03:47
Message: <4af891c3$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.