Fiber is better than go's goroutine?
Martin Nowak via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 28 01:02:22 PDT 2014
On Monday, 27 October 2014 at 21:43:47 UTC, Sean Kelly wrote:
> 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.
Will you reuse std.parallel's task scheduler for that?
I always thought that the std.parallel and Fibers should work
together but it wasn't easily possible to adapt Fibers to Tasks.
More information about the Digitalmars-d
mailing list