!critsec

The !critsec extension displays a critical section.

!critsec Address 

Parameters

Address

Specifies the hexadecimal address of the critical section.

DLL

Ntsdexts.dll

Additional Information

For other commands and extensions that can display critical section information, see Displaying a Critical Section. For information about critical sections, see the Microsoft Windows SDK documentation, the Windows Driver Kit (WDK) documentation, and Microsoft Windows Internals by Mark Russinovich and David Solomon.

Remarks

If you do not know the address of the critical section, you should use the !ntsdexts.locks extension. This displays all critical sections that have been initialized by calling RtlInitializeCriticalSection.

Here is an example:

0:000> !critsec 3a8c0e9c

CritSec +3a8c0e9c at 3A8C0E9C
LockCount          1
RecursionCount     1
OwningThread       99
EntryCount         472
ContentionCount    1
*** Locked

See also

Displaying a Critical Section

Critical Section Time Outs (user mode)

!cs