Possible Duplicate:
Programmatically find the number of cores on a machine
I have a 3d game, and I am rebuilding its engine from scratch.
The new incarnation uses multi-threading to take advantage of multiple cores.
Does anyone know of a cross-platform(linux/win/mac) solution for querying the number of available cores?