Considering the arrival time and burst time requirement of the process the scheduler schedules the processes by interrupting the processor after every 6 units of time and does consider the completion of the process in this iteration. The scheduler then checks for the number of process waiting for the processor and allows the processor to the process but interrupting the processor every 10 unit of time and considers the completion of the processes in this iteration. The scheduler checks the number of processes waiting in the queue for the processor after the second iteration and gives the processor to the process which needs more time to complete than the other processes to go in the terminated state. The inputs for the number of requirements, arrival time and burst time should be provided by the user. Consider the following units for reference. Process ,Arrival time ,Burst time respectively :-P1 0 20 ;P2 5 36; P3 13 19 ;P4 26 42.
Answers
Considering the arrival time and burst time requirement of the process the scheduler schedules the processes by interrupting the processor after every 6 units of time and does consider the completion of the process in this iteration. The scheduler then checks for the number of process waiting for the processor and allows the processor to the process but interrupting the processor every 10 unit of time and considers the completion of the processes in this iteration. The scheduler checks the number of processes waiting in the queue for the processor after the second iteration and gives the processor to the process which needs more time to complete than the other processes to go in the terminated state. The inputs for the number of requirements, arrival time and burst time should be provided by the user. Consider the following units for reference. Process ,Arrival time ,Burst time respectively :-P1 0 20 ;P2 5 36; P3 13 19 ;P4 26 42.