POV-Ray : Newsgroups : povray.off-topic : Locking references : Re: Locking references Server Time
4 Sep 2024 21:19:50 EDT (-0400)
  Re: Locking references  
From: Invisible
Date: 9 Nov 2009 08:26:29
Message: <4af81885$1@news.povray.org>
Paul Fuller wrote:
> I'd think this is immediately obvious.

Not to me. ;-)

> One issue is that a thread does not always know what locks it needs 
> before the fact.

Yes, this is the killer. Often it's not possible to know what locks you 
want until you read some data (which you have to lock first). And if you 
release the locks, somebody else could come and change the data...

> As to references, Wikipedia 'Deadlock' article is a decent starting 
> point.  Many more erudite references are given there.

OK, I'll take a look.


Post a reply to this message

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