Fiber is better than go's goroutine?

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 27 14:43:45 PDT 2014


On Monday, 27 October 2014 at 20:54:38 UTC, Brad Anderson wrote:
>
> Just out of curiosity, what's the goal of MultiScheduler? Is it 
> intended to be an M:N scheduler?

Yep.  Every logical thread is a Fiber executed in a round-robin 
manner by a pool of kernel threads.  Pooled threads are spun up 
on demand (to a set upper limit) and terminate when there are no 
fibers waiting to execute.  It should make for a good "millions 
of threads" baseline scheduler.


More information about the Digitalmars-d mailing list