public class FCFSScheduler extends java.lang.Object implements Scheduler<SchedulingState>
| Constructor and Description |
|---|
FCFSScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
ioConcluded(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has concluded the requested input/output operation
|
void |
ioRequest(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has performed an input/output operation
|
void |
newProcess(Program program)
Create a new process to run the program with given name
|
void |
processConcluded(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has concluded
|
void |
quantumExpired(ProcessControlBlock<SchedulingState> pcb)
Process with the given control block has expired its quantum
|
public void newProcess(Program program)
SchedulernewProcess in interface Scheduler<SchedulingState>program - The program to runpublic void ioRequest(ProcessControlBlock<SchedulingState> pcb)
SchedulerioRequest in interface Scheduler<SchedulingState>pcb - The process control blockpublic void ioConcluded(ProcessControlBlock<SchedulingState> pcb)
SchedulerioConcluded in interface Scheduler<SchedulingState>pcb - The process control blockpublic void quantumExpired(ProcessControlBlock<SchedulingState> pcb)
SchedulerquantumExpired in interface Scheduler<SchedulingState>pcb - The process control blockpublic void processConcluded(ProcessControlBlock<SchedulingState> pcb)
SchedulerprocessConcluded in interface Scheduler<SchedulingState>pcb - The process control block