samedi 18 avril 2015

Detecting a deadlock with logging technique in c++

I have an application that uses a dll written in c++. Every 10s time the application hangs. I checked the CPU usage and it is low which led me to believe that there is a deadlock situation. I am thinking to implement a logging mechanism to detect this deadlock. It should be detecting every thread that was spawned and locks it acquired and released...How can i implement it? Small examples can really be appreciated.


Aucun commentaire:

Enregistrer un commentaire