public class ProcessControlBlock<S>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcessControlBlock.State |
Modifier and Type | Field and Description |
---|---|
long |
arrivalTime |
Context |
context
The process's running context
|
long |
pid
The process' identifier
|
Constructor and Description |
---|
ProcessControlBlock(Program program,
S schedulingState)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getArrivalTime() |
Context |
getContext() |
long |
getPid() |
S |
getSchedulingState() |
ProcessControlBlock.State |
getState() |
void |
setState(ProcessControlBlock.State state) |
java.lang.String |
toString() |
public final long pid
public final Context context
public final long arrivalTime
public long getPid()
public Context getContext()
public ProcessControlBlock.State getState()
public void setState(ProcessControlBlock.State state)
public S getSchedulingState()
public long getArrivalTime()
public java.lang.String toString()
toString
in class java.lang.Object