M:N thread multiplexing

Moritz Maxeiner via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 30 07:32:47 PDT 2017


On Sunday, 30 July 2017 at 13:35:18 UTC, Poyeyo wrote:
> Reading this article: 
> http://www.evanmiller.org/why-im-learning-perl-6.html
> makes me curious about the state of Dlang's M:N thread 
> multiplexing.
>
> Quoting the article:
> "if you want M:N thread multiplexing your options today are 
> precisely Erlang, Go, .NET, and Perl 6."
>
> Is it possible to add D to this list of languages mentioned in 
> that article?

There is std.parallelism, which maps M tasks to N threads [1]. 
Not sure how it deals with blocking I/O, though.

[1] https://dlang.org/phobos/std_parallelism.html


More information about the Digitalmars-d mailing list