4 ms·
Are ready completions strictly determined by continuous polling if there's no system call involved? If lots of applications end up using this method, will it in
by jpetso 6y ago
Are ready completions strictly determined by continuous polling if there's no system call involved? If lots of applications end up using this method, will it increase power consumption due to many processes actively idling until a new consumable shows up in the completion queue?
- Dylan16807 6y agoThey 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.