In SAS:
%put &sysncpu;
In java, one could do:
Runtime runtime = Runtime.getRuntime();
int nrOfProcessors = runtime.availableProcessors();
In C #:
System.Environment.ProcessorCount
But these are only environment variables that are set by the operating system and can probably be changed by programming. I do not know if you can really get real information about the equipment.
source
share