Futurism lib (futures in D)

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Tue Jan 23 04:12:32 PST 2007


Kristian Kilpi kirjoitti:
> BTW, is there a way to know the number of hardware threads (and maybe
> the number of CPUs)?

std.cpuid has threadsPerCPU(). See
http://www.digitalmars.com/d/phobos/std_cpuid.html.

How does one know how many hw threads there are available, if two
multi-threaded programs are running?



More information about the Digitalmars-d-announce mailing list