D on quora ...
Jacob Carlborg
doob at me.com
Mon Oct 16 09:30:03 UTC 2017
On 2017-10-15 18:29, Ecstatic Coder wrote:
> Can you just confirm that D's fibers use most of the available
> processors/cores by default ?
It depends entirely what you do with with the fibers. When it comes to
vibe.d, it will only run on one core by default, last time I checked.
Actually, I looked up the option for enabling multithreading for
handling HTTP requests, it's now deprecated [1] and the recommendation
is instead:
"If possible, instead of threads, the use of separate processes is more
robust and often faster"
[1] http://vibed.org/api/vibe.http.server/HTTPServerOption.distribute
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list