3 ms·
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 lea
by hootbootscoot 5y 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?
- Matthias247 5y agointerrupt-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.