|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Scheduler maintains a queue of ready processes. Processes can be added to the ready queue by invoking addProcess(). The next process to run can be obtained by invoking getSelectedProcess(). A listing of the processes in the ready queue can be printed by invoking printProcess().
Method Summary | |
void |
addProcess(PCB proc)
sched.addProcess(proc) adds proc to sched's ready queue. |
PCB |
getSelectedProcess()
sched.getSelectedProcess() removes and returns a process selected from sched's ready queue. |
void |
printProcesses()
sched.printProcesses() prints the processes in sched's ready queue. |
Method Detail |
public PCB getSelectedProcess()
public void addProcess(PCB proc)
public void printProcesses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |