Sdílet prostřednictvím


CpuCollection Class

Definition

CPU Collection Class

public sealed class CpuCollection : System.Collections.ICollection
type CpuCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class CpuCollection
Implements ICollection
Inheritance
CpuCollection
Implements

Properties

AffitinizedCPUs

Will Return Affitinized CPU's

Count

Total number of elements in collection

IsSynchronized

If collection is Synchronized

Item[Int32]

Gets a particular Cpu from its Index

SyncRoot

Returns SyncRoot of collection

Methods

CopyTo(Array, Int32)

Copies CPU's in collection to Array starting from index

CopyTo(Cpu[], Int32)

Copies CPU's in collection to CPU Array starting from index

GetByID(Int32)

Gets a particulat Cpu from its ID

GetElementAt(Int32)

Gets a particular Cpu from its Index

GetEnumerator()

To get enumerator

SetAffinityToAll(Boolean)

Sets Affinity to All Cpus

SetAffinityToRange(Int32, Int32, Boolean)

Will set Affinity to a Range of CPU's provided.This method will throw an exception if there is a Cpu Id does not exist

SetAffinityToRange(Int32, Int32, Boolean, Boolean)

Will set Affinity to a Range of CPU's provided

Applies to