4 ms·
I have seen realtime signals before but never quite know what the intended use of them would be. They are relegated in my head to the same category as POSIX mes
by rdtsc 12y ago
I have seen realtime signals before but never quite know what the intended use of them would be. They are relegated in my head to the same category as POSIX message queues -- remember for trivia question purposes.
So anyone used real-time signals and why did you pick them instead of something else?
- pjc50 12y agoThe intended use case is people trying to write realtime systems - that is, systems with a latency guarantee, like antilock brakes or flight control systems - in UNIX. However, no sensible person would write such a thing in a general-purpose multi-user operating system. Realtime is hard, see the Toyota mess: http://www.viva64.com/en/a/0083/ http://www.viva64.com/en/a/0083/ "Move fast and break things" is not a great motto for automotive control software.
- amelius 12y agoHow about games, where, e.g., sound effects have a maximum acceptable delay w.r.t. the physics that generates them?
- justincormack 12y agoSignals are not a great mechanism anyway, it turned out.
- gaius 12y agoWell, any sort of process control too (as in, controlling an assembly line or a chemical plant).
- rzezeski 12y agoAccording to POSIX.1b RT signals are used for other features defined in .1b. An excerpt from "POSIX.4 Programmers Guide": > So far, we've talked about real-time signals sent by the sigqueue function. However, most POSIX.4 signals are sent as a result of three other facilities in POSIX.4. We'll cover these facilities in detail in their own chapters, but for now, you need to know that realtime signals can be generated as a result of expiration of a POSIX.4 timer, completion of asynchronous I/O, and by arrival of a message on an empty message queue. Linux reserves 2-3 RT signals for use in its threading library: http://man7.org/linux/man-pages/man7/signal.7.html http://man7.org/linux/man-pages/man7/signal.7.html
- riffraff 12y agoI remember studying POSIX message queues in the first OS class I took at the university. Nowadays, I have no I idea if anybody is actually using them.
- deleted 12y ago[deleted]