Am 12.09.2014 16:08 schrieb "Xiangrong Fang" <xrf...@gmail.com>: > > 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.
FPC 2.7.1 has TThread.ProcessorCount (it's a class property, so no instance needed) or System.CpuCount (ProcessorCount uses this). It's not yet implemented though for any system :/ Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal