How to get number of cores in C?

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2010-04-11T23:57:38Z Indexed on 2010/04/12 0:03 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about cpu-cores