Function logicalProcessorCount
Determines the number of logical processors in the system.
uint logicalProcessorCount() nothrow @property @safe;
This number includes virtual cores on hyper-threading enabled CPUs.