3 ms·
Spawning a new thread to handle a signal is much better than preemption: you then have no concerns about async-signal-safety that aren't plain old thread-safety
by cryptonector 8y ago
Spawning a new thread to handle a signal is much better than preemption: you then have no concerns about async-signal-safety that aren't plain old thread-safety concerns. I'd much rather have thread-safety constraints than async-signal-safety constraints.
- quotemstr 8y agoSort of. At least you can mask signals. I agree that threads are probably better overall, but I don't think it's a huge difference.
- Vogtinator 8y agoLinux can do that as well, see SIGEV_THREAD.