parallel
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 5 12:40:00 PST 2015
On 05.11.2015 21:30, Handyman wrote:
> Seems that 4 cores go all out on first 4 dishes, then 1 core deals with
> the last dish. With 4 cores I expect diner is ready after 5/4 = 1.25
> secs though. What did I do wrong?
You describe the situation correctly. The unit of work is a dish. That
is, the work for a single dish is not split between cores. So one of
your four cores has to make two dishes. That takes two seconds.
More information about the Digitalmars-d-learn
mailing list