class %SYSTEM.CPU extends %RegisteredObject, %SYSTEM.Help

This class holds information about available processors. The number of threads (virtual or logical cpus), cores and chips always reflect the situation in the current partition or processor set.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
11 3


Arch MHz MTEnabled MTSupported
Model Vendor nChips nCores
nCoresPerChip nThreads nThreadsPerCore
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OnNew %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject Dump Help Refresh


property Arch as %String;
Architecture, eg: x86, Itanium, SPARC, PA-RISC
property MHz as %Numeric;
Clock in MHz
property MTEnabled as %Boolean;
Is Hardware Multi-Threading enabled?
property MTSupported as %Boolean;
Is Hardware Multi-Threading supported?
property Model as %String;
Chip model, eg: Pentium 4, POWER5
property Vendor as %String;
Chip vendor, eg: Intel, Sun, IBM
property nChips as %Numeric;
Number of chips (depends on partition configuration)
property nCores as %Numeric;
Number of cores (depends on partition configuration)
property nCoresPerChip as %Numeric;
Number of cores per chip (physical property)
property nThreads as %Numeric;
Number of threads (virtual or logical cpus)
property nThreadsPerCore as %Numeric;
Number of threads per core (physical property)


method %OnNew() as %Status
This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

classmethod Dump()
Display CPU information
method Refresh() as %Status
Force update and get new properties
Copyright © 1997-2020 InterSystems Corporation, Cambridge, MA