Declaration: CPUCount: integer;
The function CPUCount returns the number of logical CPU cores in the system. Please note that CPUCount will take hyperthreading into account, which effectively doubles the number of reported cores if hyperthreading is supported (a system with four physical cores will be reported as having eight cores).