What do you look for when debugging deadlocks?

Posted by Michael K on Programmers See other posts from Programmers or by Michael K
Published on 2011-01-26T14:56:24Z Indexed on 2012/10/22 23:17 UTC
Read the original article Hit count: 261

Filed under:
|

Recently I've been working on projects that heavily use threading. I think that I'm OK at designing them; use stateless design as much as possible, lock access to all resources that more than one thread needs, etc. My experience in functional programming has helped that immensely.

However, when reading other people's thread code, I get confused. I am debugging a deadlock right now, and since the coding style and design are different from my personal style, I am having a difficult time seeing potential deadlock conditions.

What do you look for when debugging deadlocks?

© Programmers or respective owner

Related posts about debugging

Related posts about multithreading