[haiku-development] Re: address space rwlock issue?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 15 Mar 2009 19:33:44 +0100

On 2009-03-15 at 19:04:05 [+0100], Jonas Sundström <jonas@xxxxxxxxxxx> 
wrote:
> Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>  ...
> > Pretty much the only way to find out, is to check
> > the stack traces of all waiting threads
> 
> Would it be possible to have a deadlocks command in
> KDL, comparing the threads currently holding locks
> with threads waiting on locks?

Well, as in this case it is not always known which thread is holding a 
lock. If it were, analyzing the lock manually wouldn't be hard either -- 
you'd just have to follow the lock owners until detecting a cycle.

CU, Ingo

Other related posts: