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)
Scheduler
newProcess
in interface Scheduler<SchedulingState>
program
- The program to runpublic void ioRequest(ProcessControlBlock<SchedulingState> pcb)
Scheduler
ioRequest
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void ioConcluded(ProcessControlBlock<SchedulingState> pcb)
Scheduler
ioConcluded
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void quantumExpired(ProcessControlBlock<SchedulingState> pcb)
Scheduler
quantumExpired
in interface Scheduler<SchedulingState>
pcb
- The process control blockpublic void processConcluded(ProcessControlBlock<SchedulingState> pcb)
Scheduler
processConcluded
in interface Scheduler<SchedulingState>
pcb
- The process control block