|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PCB
A PCB represents a user process.
Constructor Summary | |
PCB(int tid,
Image im)
new PCB(tid, im) returns a new PCB with process identifier tid and executable image im. |
Method Summary | |
java.lang.String |
getDescription()
proc.getDescription() returns a description of proc. |
Image |
getImage()
proc.getImage() returns the executable image for proc. |
PageTable |
getPageTable()
proc.getPageTable() returns the page table for proc. |
int |
getPID()
proc.getPID() returns the process identifier for proc. |
int |
getTimeLeft()
proc.getTimeLeft() returns the CPU time remaining until proc has completed execution. |
boolean |
isTerminated()
proc.isTerminated() returns true if proc has terminated execution. |
void |
run(int t)
proc.run(t) runs proc for t clock ticks. |
void |
setPageTable(PageTable pt)
proc.setPageTable(pt) sets the page table for proc to pt. |
java.lang.String |
toString()
proc.toString() returns the class name and process identifier of proc as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PCB(int tid, Image im)
Method Detail |
public int getPID()
public Image getImage()
public int getTimeLeft()
public boolean isTerminated()
public PageTable getPageTable()
public void setPageTable(PageTable pt)
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public void run(int t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |