什么是推锁?

发布于 2024-07-29 23:47:20 字数 82 浏览 15 评论 0原文

推锁由 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芸娘子的小脾气 2024-08-05 23:47:20

推锁以及互斥体、同步事件、信号量和执行资源都是基于等待的。

另一方面,自旋锁、队列自旋锁等等都是“自旋”类型,通过忙等待(旋转)来实现。

这篇文章

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文