Boost logo

Boost :

Subject: Re: [boost] [fiber] on schedulers and wakeups
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2015-09-11 05:06:53


2015-09-11 11:02 GMT+02:00 Oliver Kowalke <oliver.kowalke_at_[hidden]>:

> 2015-09-11 10:48 GMT+02:00 Giovanni Deretta <gpderetta_at_[hidden]>:
>
>>
>> So yes, if you have N ready tasks yielding, there are N+1 context
>> switches
>> (but not 2*N) per iteration. The cost of the additional idle task is
>> amortized over N tasks.but
>>
>
> the idle-fiber pushes itself to ready_next before switch_context() is
> called
> that would mean that idle-fiber is called every second time
>

OK - you are right, please ignore my posting


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk