JobObjectCpuHardCap Struct
Represents the CPU rate control settings of a job object.
public readonly struct JobObjectCpuHardCap : IEquatable<JobObjectCpuHardCap>Remarks
Only the members that belong to JobObjectCpuHardCap.Mode carry a meaningful value; the others are zero. Check JobObjectCpuHardCap.Mode before reading JobObjectCpuHardCap.Rate, JobObjectCpuHardCap.Weight, JobObjectCpuHardCap.MinRate or JobObjectCpuHardCap.MaxRate.
- Implements
Properties
| Name | Description |
|---|---|
| Enabled | Gets a value indicating whether CPU rate control is enabled for the job. |
| MaxRate | Gets the maximum portion of processor cycles the job may use, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.MinMaxRate. |
| MinRate | Gets the minimum portion of processor cycles reserved for the job, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.MinMaxRate. |
| Mode | Gets the CPU rate control policy the job is using. |
| Rate | Gets the portion of processor cycles the job may use, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.HardCap. |
| Weight | Gets the scheduling weight of the job, from 1 to 9. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.Weight. |
Enabled
JobObjectCpuHardCap.csMaxRate
JobObjectCpuHardCap.csGets the maximum portion of processor cycles the job may use, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.MinMaxRate.
public int MaxRate { get; init; }Property value
MinRate
JobObjectCpuHardCap.csGets the minimum portion of processor cycles reserved for the job, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.MinMaxRate.
public int MinRate { get; init; }Property value
Gets the CPU rate control policy the job is using.
public JobObjectCpuRateControlMode Mode { get; init; }Property value
Gets the portion of processor cycles the job may use, as a percentage times 100. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.HardCap.
public int Rate { get; init; }Property value
Weight
JobObjectCpuHardCap.csGets the scheduling weight of the job, from 1 to 9. Meaningful when JobObjectCpuHardCap.Mode is JobObjectCpuRateControlMode.Weight.
public int Weight { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Equals(JobObjectCpuHardCap) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(JobObjectCpuHardCap)
public bool Equals(JobObjectCpuHardCap other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(JobObjectCpuHardCap, JobObjectCpuHardCap) | |
| operator !=(JobObjectCpuHardCap, JobObjectCpuHardCap) |
operator ==(JobObjectCpuHardCap, JobObjectCpuHardCap)
public static bool operator ==(JobObjectCpuHardCap left, JobObjectCpuHardCap right)No documentation is available.
operator !=(JobObjectCpuHardCap, JobObjectCpuHardCap)
public static bool operator !=(JobObjectCpuHardCap left, JobObjectCpuHardCap right)No documentation is available.