V2EX  ›  英汉词典
Enqueued related words: SIGUSR1, SIGUSR2

SIGALRM

定义 Definition

SIGALRM:在类 Unix 系统中表示“闹钟/定时器到期”的信号。程序通常在设置了 alarm() 或某些定时器后,到期时收到该信号,用于实现超时处理等功能。(不同系统/语言运行时对其细节可能略有差异。)

发音 Pronunciation

/ˌsɪɡˈælɑːrm/

例句 Examples

The program exits when it receives SIGALRM.
当程序收到 SIGALRM 时就会退出。

To avoid hanging forever, we set a timeout and handle SIGALRM to interrupt the blocking call safely.
为避免一直卡住,我们设置超时并处理 SIGALRM,以便安全地中断阻塞调用。

词源 Etymology

SIGALRM 是 Unix 信号命名习惯中的缩写:SIG- 表示 signal(信号),ALRM 源自 alarm(闹钟/报警),合起来表示“定时到点触发的信号”。

相关词 Related Words

文献与作品 Literary Works

  • Advanced Programming in the Unix Environment(W. Richard Stevens, Stephen A. Rago)
  • The Linux Programming Interface(Michael Kerrisk)
  • man 7 signalman 2 alarm(Unix/Linux 手册页)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   708 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 22:04 · PVG 06:04 · LAX 14:04 · JFK 17:04
♥ Do have faith in what you're doing.