std.threads : smp programming

Vladimir Panteleev thecybershadow at gmail.com
Tue Jul 31 21:10:27 PDT 2007


On Wed, 01 Aug 2007 01:43:15 +0300, Wiz <clem.codeur at gmail.com> wrote:

> std.threads is a great lib, helped me more than one time.
> But there was a missing thing, something to really help programmers
> making smp code.
> We need to create a thread by core/cpu, but, there is nothing like a
> function that return the number of processors.

I'd just like to add that on Windows, this is done using the GetSystemInfo function (the dwNumberOfProcessors field of the SYSTEM_INFO structure).

There's some more info on the subject in this Tango ticket:
http://www.dsource.org/projects/tango/ticket/371

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list