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?