Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, that's exactly what the kernel is doing when it swaps threads. When you block on I/O, you're voluntarily pausing your thread and doing concurrent I/O with another thread.

Async and threads are a lot closer than most people think. An OS is mainly a queue for swapping between async operations, and a collection of abstracted services that the async operations can request, like network or disk i/o.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: