public enum CpuCoolers extends Enum<CpuCoolers> implements CpuCooler
| Enum Constant and Description |
|---|
AFFINITY
Switches the CPU affinity back and forth between two cores, causing the CPU to do work in
moving the executing thread from one core to the other.
|
ALL
Performs multiple disturbing operations at once.
|
BUSY |
BUSY_3 |
BUSY1 |
BUSY10 |
BUSY100 |
BUSY1000 |
BUSY3 |
BUSY30 |
BUSY300 |
MEMORY_COPY |
PARK
Causes the CPU to wait without doing work for a very short period of time.
|
PAUSE1 |
PAUSE10 |
PAUSE100 |
PAUSE1000 |
PAUSE3 |
PAUSE6 |
SERIALIZATION |
YIELD |
| Modifier and Type | Method and Description |
|---|---|
static void |
busyWait(double nanos) |
static CpuCoolers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CpuCoolers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CpuCoolers PARK
public static final CpuCoolers PAUSE1
public static final CpuCoolers PAUSE3
public static final CpuCoolers PAUSE6
public static final CpuCoolers PAUSE10
public static final CpuCoolers PAUSE100
public static final CpuCoolers PAUSE1000
public static final CpuCoolers YIELD
public static final CpuCoolers BUSY
public static final CpuCoolers BUSY_3
public static final CpuCoolers BUSY1
public static final CpuCoolers BUSY3
public static final CpuCoolers BUSY10
public static final CpuCoolers BUSY30
public static final CpuCoolers BUSY100
public static final CpuCoolers BUSY300
public static final CpuCoolers BUSY1000
public static final CpuCoolers AFFINITY
public static final CpuCoolers SERIALIZATION
public static final CpuCoolers MEMORY_COPY
public static final CpuCoolers ALL
public static CpuCoolers[] values()
for (CpuCoolers c : CpuCoolers.values()) System.out.println(c);
public static CpuCoolers valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void busyWait(double nanos)
Copyright © 2024. All rights reserved.