Why my thread is blocked when no other thread owned the critical section

  • Thread starter Thread starter Vijayan.S
  • Start date Start date
V

Vijayan.S

Guest
I am seeing performance issue in my code, when i took the dump of the application, i see most of threads are waiting for a critical section, that is not owned by any other thread. For example, when i checked the call stack of the one waiting thread and saw the critical section it was not owned by any threads.


[+0x000] DebugInfo : 0xffffffffffffffff [Type: _RTL_CRITICAL_SECTION_DEBUG *]
[+0x008] LockCount : -1 [Type: long]
[+0x00c] RecursionCount : 0 [Type: long]
[+0x010] OwningThread : 0x0 [Type: void *]
[+0x018] LockSemaphore : 0x0 [Type: void *]
[+0x020] SpinCount : 0xfa0 [Type: unsigned __int64]


My thread is waiting on the above critical section, but why?

Continue reading...
 
Back
Top