Debugging Tools for Windows |
!qlocks扩展用于显示所有排队的自旋锁(queued spin lock)的状态。
Windows 2000 | Kdextx86.dll |
Windows XP和之后 | Kdexts.dll |
该命令仅在多处理器系统上有用。
下面是一个示例:
Key: O = Owner, 1-n = Wait order, blank = not owned/waiting, C = Corrupt
Processor Number
Lock Name 0 1 2 3
KE - Dispatcher
KE - Unused Spare
MM - PFN
MM - System Space
CC - Vacb
CC - Master
EX - NonPagedPool
IO - Cancel
EX - WorkQueue
IO - Vpb
IO - Database
IO - Completion
NTFS - Struct
AFD - WorkQueue
CC - Bcb
MM - MM NonPagedPool
关于自旋锁的信息,查看Windows Driver Kit (WDK) 文档,以及Mark Russinovich 和David Solomon 编写的Microsoft Windows Internals。