Help please. For question 1 and 3 you can choose more than 1. Question 1 5 pts O
ID: 3866450 • Letter: H
Question
Help please.
For question 1 and 3 you can choose more than 1.
Question 1 5 pts On which events is the CPU scheduler invoked for a kernel with cooperative scheduling? O when a process makes a read system call to read from a file when the time slice of a process expires O when an I/O interrupt occurs and the running process switches from the running state to the ready state when a process calls exit0 Question 2 5 pts Consider the following processes, their parameters (arrival time, CPU burst duration and priority) PID Arrival time Surst time priority 1 0 84 2 33 3 6 45 41052 What is the average waiting time for preemptive priority scheduler?Explanation / Answer
Q1.
For a kernel with co-operative scheduling, the event is invoked when the time slice of the process is completed. This is because in co-operative scheduling,the processes must share the time available and so it is also called time sharing scheduling.
Q3.
A system call to create a new process necessitate the critical sections to avoid race condition in preemptive kernels.
The preemptive kernels will shedule the processes such that the high priority task is given the run time of course. Race condition occurs when a low priority task is never executed because of new high priority tasks being created.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.