|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Scheduler
|
+--DiskScheduler
A FCFS scheduler for the disk. It maintains a simple queue of jobs.
| Constructor Summary | |
DiskScheduler()
|
|
| Method Summary | |
boolean |
add(Job j,
Job dummy)
Add a new job wanting service. |
void |
printQueue()
For debugging: print the queue of waiting jobs |
Job |
remove()
Retrieve (and remove) the next job to be served. |
boolean |
reschedule(Job j)
This method is called when there is a clock interrupt, and just after a job changes state. |
| Methods inherited from class Scheduler |
endBurst,
printStats,
queueChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DiskScheduler()
| Method Detail |
public boolean add(Job j,
Job dummy)
j - the job to servedummy - always nullpublic Job remove()
public boolean reschedule(Job j)
j - the job currently being serviced by the corresponding device.public void printQueue()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||