org.mentaaffinity
Class Processor
java.lang.Object
org.mentaaffinity.Processor
public class Processor
- extends Object
An object representing a logical processor, the smallest processing unit capable of running only one thread at a time. Do not confuse this class with a physical processor.
- Author:
- Sergio Oliveira Jr.
|
Constructor Summary |
Processor(int procId,
int chipId,
int coreId,
boolean isExcluded)
|
Processor
public Processor(int procId,
int chipId,
int coreId,
boolean isExcluded)
getStatusString
public String getStatusString()
getId
public int getId()
getChipId
public int getChipId()
getCoreId
public int getCoreId()
isExcluded
public boolean isExcluded()
isFree
public boolean isFree()
isBound
public boolean isBound()
getThread
public Thread getThread()
sameChip
public boolean sameChip(Processor other)
sameCore
public boolean sameCore(Processor other)
sameChipDifferentCore
public boolean sameChipDifferentCore(Processor other)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
getMask
public int getMask()
Copyright © 2012. All Rights Reserved.