Hacker News new | ask | show | jobs
by hootbootscoot 1631 days ago
tangent: why is the basis of most async functionality a form of polling underneath?

Why are interrupts not used? or are they?

source: epoll, select(bsd at least), isn't kqueue also like a multiplexed epoll?

1 comments

interrupt-like things are used to schedule the next poll of the function. Polling doesn't happen randomly or within certain time intervals, but when an external event (via a Waker interface) tells the runtime to schedule the function again for polling.