Function GetLogicalProcessorCount() Foundation
Query the number of available logical processors on the machine
Syntax
GetLogicalProcessorCount() --> nLogicalProcessor
Return
The function returns the number of logical processors available on the system.
Description
A processor is generally a unit able to execute operations. A Logical Processor is the term used to represent the fact that today:
A processor can be virtual (vmware, MS hyper-v).
A physical CPU/Processor can have multiple cores/processors.
A hyper-threading capable core is divided into two logical processing units.
The term Logical Processor describes what we see from a software perspective as the processing unit.
Examples
// Assign the Process randomly to a logical processor unit
PROCEDURE Main
SetLogicalProcessor( RandomInt(GetLogicalProcessorCount()) )
RETURN
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.