If you're talking bout x88_64, i386 platforms, you should be able to do it using CPUID instruction
http://en.wikipedia.org/wiki/CPUID thanks, Dmitry On Fri, Sep 12, 2014 at 10:07 AM, Xiangrong Fang <xrf...@gmail.com> wrote: > Hi All, > > Is there a platform independent (specifically Windows and Linux) way to > detect cores and hyper-threads of the CPU? I am writing a calculation > intensive app and would like to fully utilize SMP capability of the CPU. > > Thanks! > Xiangrong > > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal