Subject: Re: [boost] [asio] inefficiency in the polling
From: Seth (bugs_at_[hidden])
Date: 2016-09-29 11:32:25
On 27-09-16 17:10, Tatsuyuki Ishi wrote:
> The current run/poll_one does polling regardless if there's task in the
> If there's task in the queue, polling is just a waste of system call, since
> there's already a job to do.
This is not accurate. You cannot do fair scheduling unless you know the
work available. Neglecting some of the work leads to possible starvation
of those tasks (imagine if the task in queue posts a new task every
time. Your suggestion would **never** poll at all).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk