Liste des Groupes |
In article <vljg72$28nj0$1@dont-email.me>, <Muttley@DastardlyHQ.org> wrote:On Tue, 7 Jan 2025 14:13:29 -0000 (UTC)>
cross@spitfire.i.gajendra.net (Dan Cross) wibbled:This is conflating multiple things. Most IO operations dealing>
with the actual hardware _are_ asynchronous (this is what
McIlroy meant in the quote I posted earlier). The system call
interface gives the program the illusion of those happening
sequentially, but that's not how the devices really work.
And? By your definition its still asynchronous programming.
In the kernel, it sure is. Unix programmers have been writing
asynchronous programs (using e.g. `fork`) since 1970.
Please don't just make stuff up.>
Hmm. I wonder what shell you use, if you use Unix at all.
Here for example is the signal handler for SIGINT in bash:
https://git.savannah.gnu.org/cgit/bash.git/tree/sig.c?h=devel#n691
Here's the SIGWINCH handler for good 'ol `script` from
OpenBSD:
https://github.com/openbsd/src/blob/6d253f95424ee0054c798f493d12377911cd3668/us
r.bin/script/script.c#L224
Those are just a few examples. If one cares to look, one will
find many more in non-trivial programs used in production daily.
Les messages affichés proviennent d'usenet.