信号就是软件中断,可以向正在执行的程序(进程)发送有关异步事件发生的信息。
Signals are software interrupts that send information about an occurrence of an asynchronous event to an executing program, or process.
程序中的信号处理程序捕获到函数的执行被某个信号中断,信号处理程序然后按正常方式返回。
EINTR — the function was interrupted by a signal, which was caught by a signal handler in the program, and the signal handler returned normally.
除了必要的模块包含及变量声明之外,信号中断捕捉程序被定义为允许输出每个数据运行的相关的头文件。
In addition to the necessary module includes and variable declarations, the signal-interrupt catcher is defined to allow the associated header for each data run to be printed out.
因此,懒惰的程序员可能比较喜欢将进程置为不可中断模式的睡眠状态,因为信号不会唤醒这类任务。
So a lazy programmer might prefer putting the process into uninterruptible sleeping mode because signals do not wake up such tasks.
类似于同步信号的是“临界区域”,它是程序码中不可中断的部分。
Similar to semaphores are "critical sections," which are sections of code that cannot be interrupted.
红外发射程序的关键是定时时间到时调用中断程序来产生载波信号,对按键信号和载波信号进行调制。
The key of the infrared sending program was calling the interrupt subroutine to produce the carrier wave and modulate it with the key signal.
数字化控制器控制软件采用PL/M-96高级语言编程,其中断处理程序用于辩别信号频率、累计每一频率持续时间。
PL/M-96 program language is used as the software of the controller. The signal frequencies are distinguished and the persistence time of the frequency is accumulated with interrupt process routine.
数字化控制器控制软件采用PL/M-96高级语言编程,其中断处理程序用于辩别信号频率、累计每一频率持续时间。
PL/M-96 program language is used as the software of the controller. The signal frequencies are distinguished and the persistence time of the frequency is accumulated with interrupt process routine.
应用推荐