Hacker News new | ask | show | jobs
by kstenerud 95 days ago
It's not really possible to make them safer without hurting performance. Signals break the C virtual machine guarantees (atomics, memory consistency, register consistency, etc), and the only way to re-establish them for edge cases like signals would be to cripple the rest of the program with extra checks (basically making ALL data volatile).
1 comments

I guess that's why unix signals are not appropriate for concurrent message handling