In my project, program flow always hangs at one place. When I debugged it, I found a few complex locking mechanisms are used. Kind of spinlock and mutex.
How can I identify that number of spin locks or other locks like mutex, semaphore is already acquired in the program, but not released respectively?