I want to know the number of cores from inside a program. I am working with some large data sets (16MB digital images), and it would be nice to have a thread per core working on the data. Being able to determine SMP or NUMA would be nice, but core count is my going to be my first try. Thanks Charles Fischer