3 ms·
...so interrupt-callbacks was the only way to avoid blocking calls I don't know how early MacOS works, but on Unix its not the _only_ way: that's what poll(),
by adrianratnapala 10y ago
...so interrupt-callbacks was the only way to avoid blocking calls
I don't know how early MacOS works, but on Unix its not the _only_ way: that's what poll(), select() and the like are for.
And while threads their uses, they don't really change this aspect. Eventually the thread must report a result, and the best way to do that is to report into to some queue that gets polled somewhere.
- cturner 10y ago"on Unix its not the _only_ way" Options were more limited in early unix. Use of signals as an adhoc IPC mechanism predates BSD sockets api (1983). Poll has something to do with SysV, so would have been later. There may have been other IPC mechanisms that were dropped before modern unix (but presumably dropped for good reasons). Art of Unix Programming refers to one called mx.