Signals are software interrupts that send information about an occurrence of an asynchronous event to an executing program, or process.
信号就是软件中断,可以向正在执行的程序(进程)发送有关异步事件发生的信息。
The RTSJ includes support for handling asynchronous events triggered by a number of sources including timers, operating-system signals, missed deadlines, and other application-defined events.
RTSJ包含了对异步事件处理的支持,触发异步事件的事件包括大量包含计时器的源代码、操作系统信号、超过时限和其他应用程序定义的事件。
Due to the asynchronous nature of signals, it is difficult to point out the bug caused when a signal-handling function triggers a non-reentrant function.
由于信号在本质上是异步的,所以难以找出当信号处理函数触发某个不可重入函数时导致的bug。
应用推荐