11 Sep
2015
11 Sep
'15
9:02 a.m.
2015-09-11 10:48 GMT+02:00 Giovanni Deretta
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