|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--FIFOScheduler
A FIFOScheduler maintains a queue of ready processes in first-in-first-out order.
| Constructor Summary | |
FIFOScheduler()
new FIFOScheduler() returns a new first-in-first-out scheduler. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FIFOScheduler()
| Method Detail |
public PCB getSelectedProcess()
getSelectedProcess in interface Schedulerpublic void addProcess(PCB proc)
addProcess in interface Schedulerpublic void printProcesses()
printProcesses in interface Scheduler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||