!mlocks – Lists all managed locks and unmanaged CriticalSections, along with their owner thread ID.
Sample:
0:000> !mlocks Examining SyncBlocks... Scanning for ReaderWriterLock instances... Scanning for holders of ReaderWriterLock locks... Scanning for ReaderWriterLockSlim instances... Scanning for holders of ReaderWriterLockSlim locks... Examining CriticalSections... ClrThread DbgThread OsThread LockType Lock LockLevel ------------------------------------------------------------------------------ 0x243 88 0x1b4c SyncBlock 000000000bb60408 0x1 0 0x50bc thinlock 00000000106e17f8 (recursion:2)
!mwaits – Lists all waiting threads and, if it can be determined, the lock objects they are waiting on.
Sample:
0:000> !mwaits Examining SyncBlocks... Scanning for ReaderWriterLock instances... Scanning for holders of ReaderWriterLock locks... Scanning for ReaderWriterLockSlim instances... Scanning for holders of ReaderWriterLockSlim locks... Examining CriticalSections... Scanning for threads waiting on SyncBlocks... *** WARNING: Unable to verify checksum for IxNetwork.Main.dll Scanning for threads waiting on ReaderWriterLock locks... *** WARNING: Unable to verify checksum for mscorlib.ni.dll *** WARNING: Unable to verify checksum for System.ni.dll *** WARNING: Unable to verify checksum for System.Management.ni.dll Scanning for threads waiting on ReaderWriterLocksSlim locks... Scanning for threads waiting on CriticalSections... *** WARNING: Unable to verify checksum for System.Core.ni.dll *** ERROR: Module load completed but symbols could not be loaded for System.Core.ni.dll *** WARNING: Unable to verify checksum for System.Windows.Forms.ni.dll *** WARNING: Unable to verify checksum for System.Runtime.Remoting.ni.dll Scanning threads for waits on unknown locks..