parallel

Handyman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 5 12:43:50 PST 2015


On Thursday, 5 November 2015 at 20:40:00 UTC, anonymous wrote:
> So one of your four cores has to make two dishes. That takes 
> two seconds.

So make fine-grained?

foreach (i; 0..50)
    Thread.sleep(20.msecs);

But then my program still says: '2 secs'.   Please enlighten me.



More information about the Digitalmars-d-learn mailing list