2
Q
实时信号的意义?
A
回答
2
按照signal(7)
manpage,有几个不同点:
Real-time signals are distinguished by the following:
1. Multiple instances of real-time signals can be queued. By con-
trast, if multiple instances of a standard signal are delivered
while that signal is currently blocked, then only one instance is
queued.
2. If the signal is sent using sigqueue(2), an accompanying value
(either an integer or a pointer) can be sent with the signal. If
the receiving process establishes a handler for this signal using
the SA_SIGINFO flag to sigaction(2) then it can obtain this data
via the si_value field of the siginfo_t structure passed as the
second argument to the handler. Furthermore, the si_pid and si_uid
fields of this structure can be used to obtain the PID and real
user ID of the process sending the signal.
3. Real-time signals are delivered in a guaranteed order. Multiple
real-time signals of the same type are delivered in the order they
were sent. If different real-time signals are sent to a process,
they are delivered starting with the lowest-numbered signal.
(I.e., low-numbered signals have highest priority.)
If both standard and real-time signals are pending for a process, POSIX
leaves it unspecified which is delivered first. Linux, like many other
implementations, gives priority to standard signals in this case.
0
的差异进行了总结,例如,here。
相关问题
- 1. 为数据库中的“模拟任意信号”定义信号
- 2. Node.js和POSIX实时信号
- 3. Linux和实时信号
- 4. 实时检测信号中的波形
- 5. 使用GPU的实时信号处理
- 6. 更高的时钟信号频率实际上意味着什么?
- 7. 实现信号量
- 8. 实现信号量
- 9. 没有人在等待时发信号通知条件变量的意义?
- 10. 使用信号实时通知R
- 11. 信号量的初始值有什么意义?
- 12. Django post_save()信号的实现
- 13. Django的自定义信号
- 14. 斯威夫特语法意义 “公共类信号<T> {}”
- 15. Linux中POSIX可靠信号与POSIX实时信号有什么区别?
- 16. 与扭曲PyQt的信号:不能赶上自定义信号
- 17. 实施信号器组
- 18. 如何实现信号
- 19. 混淆信号量定义
- 20. 信号下降到未定义,而所有相关的信号被定义
- 21. glibmm超时信号
- 22. 实时通信
- 23. QT信号和插槽意外错误
- 24. 什么是信号(SIGCHLD,SIG_DFL);意思?
- 25. Django时间段的信号
- 26. 调试时的信号
- 27. MFCC中的时域信号
- 28. Qt的显示实时图像,从大量的信号
- 29. 大O符号,不同的意义
- 30. 等待/信号(信号量)如何实现伪代码“工作”?