什么是推锁?
推锁由 Windows 内部用作其某些操作的同步原语,特别是作为内存管理器的一部分。
到底什么是推锁? 它与自旋锁有什么不同?
Pushlocks are used internally by windows as synchronization primitives for some of its operations, specifically as part of the memory manager.
What exactly is a pushlock? How is it different from a spinlock?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
推锁以及互斥体、同步事件、信号量和执行资源都是基于等待的。
另一方面,自旋锁、队列自旋锁等等都是“自旋”类型,通过忙等待(旋转)来实现。
这篇文章。
Pushlocks, together with mutexes, synchronization events, semaphores and executive resources are WAIT-based.
In the other hand, spinlocks, queue spinlocks are, etc. are, well... of "spin" type, implemented by busy-waiting (spinning).
The choice of a particular synchronization primitive is discussed in depth in this article.