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. 等待/信號(信號量)如何實現僞代碼「工作」?