3 ms·
They said without polling. If the queue completely empties, then a normal application will use a system call to go to sleep. But as long as it's not empty, th
by Dylan16807 6y ago
They said without polling.
If the queue completely empties, then a normal application will use a system call to go to sleep.
But as long as it's not empty, the application can keep receiving events with neither system calls nor active polling.
You'd only actively poll in very specialized/niche cases.
- jpetso 6y agoThanks for explaining. I was confused by the "no system call on consumption" example in the blog post, but if it uses a system call after emptying the completion queue then that'll work just fine.