I\'m writing a program in C on windows that needs to run as many threads as available cores. But I dont know how to get the number of cores. Any ideas?
Even though the question deals with .NET and yours with C, the basic responses should help:
Detecting the number of processors