|
|
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
|
|