Hacker News new | ask | show | jobs
by geofft 2743 days ago
I've never totally followed why AIO is its own set of interfaces instead of a generic async system call mechanism based on something like this. Write a bunch of requests to a page in the form of the registers that would make up the syscal, then wait for one to be completed using a futex or something (where futex(2) remains an actual system call).
1 comments

You just reinvented async-await/continuations. It's a great idea.