Are there any situations when it worth to use realtime signals for interprocess communication(or any other reason actually)?
For me it seems like all the difficulties with them make the code overcomplicated, difficult to maintain and potentially full of bugs.
It would be nice if somebody could show that I’m mistaken.
Thanks,
Alex.
Notably, realtime signals are used internally in the NPTL implementation of pthreads.
Realtime signals, unlike their basic counterparts, will queue, making them useful for edge-triggered IO readiness indication.
Realtime signals, unlike their basic counterparts, can also carry an
int/pointer’s worth of arbitrary data. I can think of several times I’ve wanted to send just a bit more data along with a notification.I’m not sure what you mean by “overcomplicated, difficult to maintain and potentially full of bugs.”