
11 Sep
2015
11 Sep
'15
11:07 a.m.
2015-09-11 10:48 GMT+02:00 Giovanni Deretta
The idea is that yield and friends would switch to the idle fiber only when they reach the end of the ready queue.
the idle-fiber executes only function idle() - why not simply execute idle() instead of switch_context(n, this_context); at the end of scheduler::yield()? what are the reasons that idle() must run on an extra fiber-stack?