public interface Scheduler<S>
Modifier and Type | Method and Description |
---|---|
void |
ioConcluded(ProcessControlBlock<S> pcb)
Process with the given control block has concluded the requested input/output operation
|
void |
ioRequest(ProcessControlBlock<S> 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<S> pcb)
Process with the given control block has concluded
|
void |
quantumExpired(ProcessControlBlock<S> pcb)
Process with the given control block has expired its quantum
|
void newProcess(Program program)
program
- The program to runvoid ioRequest(ProcessControlBlock<S> pcb)
pcb
- The process control blockvoid ioConcluded(ProcessControlBlock<S> pcb)
pcb
- The process control blockvoid quantumExpired(ProcessControlBlock<S> pcb)
pcb
- The process control blockvoid processConcluded(ProcessControlBlock<S> pcb)
pcb
- The process control block