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?
You can read NUMBER_OF_PROCESSORS environment variable.