[concurrency-interest] Deadlock definition question

Peter Veentjer alarmnummer at gmail.com
Sat Jun 27 19:27:29 EDT 2009


Hi Guys,

I have a corner case question about the definition of a deadlock.

In most literature I see that there at least 2 threads need to be
involved. But what if there is a single thread and a non reentrant
lock? As thread still can get in a 'deadlock' like sitation when he
tries to reacquire the lock he already owns. So 1 thread would be
sufficient as well I would say.

Peter


More information about the Concurrency-interest mailing list