News for hackers. Stuff that matters.
Re:macOS Sonoma 14.4 might break Java on your machine by zozbot234 on Monday March 18, 2024 @07:05AM (#39742452)
How is this pattern any different from "keep interrupts disabled all the time except when the program is ready to yield()"? I'm not really seeing the inherent difference w/ the well-known pitfalls of multi-threaded programming. The defining characteristics of signals is that, like interrupts and multi-threaded execution, they can pre-empt your program at any time. (Synchronous signals as you describe them are indeed different, they look more like a "recoverable exceptions" system.)
Re:macOS Sonoma 14.4 might break Java on your machine by quotemstr on Monday March 18, 2024 @07:07AM (#39742468)
> keep interrupts disabled all the time except

It's not. So what?

> The defining characteristics of signals is that, like interrupts and multi-threaded execution

No, they can't. You control when they are masked and unmasked. Certain signals are delivered in response only to certain actions (e.g. floating point errors when enabled, or memory access failures). It's not the chaos you think.