3 ms·
> You can also get a signal from the OS at any time, and you have to be prepared to handle it. This is comparing Apples to ICBMs. Blocking I/O is very common,
by MrBuddyCasino 11y ago
> You can also get a signal from the OS at any time, and you have to be prepared to handle it.
This is comparing Apples to ICBMs. Blocking I/O is very common, but OS signals aren't - in Java, all you need is usually a Runtime.addShutdownHook() and you're good to go.
Julia Evans describes an implementation that is inherently racy, there is no way this could work 100% correct all of the time.