V2EX  ›  英汉词典

Busy-wait

定义 Definition

busy-wait(也作 busy waiting)指“忙等/自旋等待”:程序在等待某个条件满足(如锁释放、I/O 完成)时,不进入睡眠或阻塞,而是不断循环检查条件,从而持续占用 CPU 资源。(在操作系统与并发编程语境中最常见)

发音 Pronunciation

/ˈbɪzi weɪt/

例句 Examples

The thread will busy-wait until the flag becomes true.
该线程会一直忙等,直到标志位变为真。

In a multi-core system, busy-waiting on a spinlock can reduce latency, but it may waste CPU cycles and hurt overall throughput.
在多核系统中,对自旋锁进行忙等可能降低延迟,但也会浪费 CPU 周期并损害整体吞吐量。

词源 Etymology

busy(忙碌的)+ wait(等待) 组合而成,字面意思是“忙着等”。它强调等待期间并非“休眠”,而是通过不断轮询(polling)来消耗处理器时间;因此在工程上常与“自旋(spin)”相关联。

相关词 Related Words

文学与著作中的用例 Literary Works

  • Operating System Concepts(Silberschatz, Galvin, Gagne)——讨论自旋锁与忙等的取舍
  • Modern Operating Systems(Andrew S. Tanenbaum)——在同步机制章节中提及 busy waiting
  • Computer Systems: A Programmer’s Perspective——在并发/同步相关内容中涉及忙等与性能影响
  • The Linux Programming Interface(Michael Kerrisk)——在进程/线程同步与等待策略中出现相关术语
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   723 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 7ms · UTC 22:36 · PVG 06:36 · LAX 14:36 · JFK 17:36
♥ Do have faith in what you're doing.