edited by
324 views
0 votes
0 votes
If the jobs are  non-premptive, then the avg waiting and avg response time will be the same? w.r.t any scheduling algo?
edited by

1 Answer

Best answer
0 votes
0 votes
Response time is the first time the job gets the CPU, precisely speaking (First time the jobs get the CPU - Arrival time),so if considered different scheduling algorithm the time at which the jobs gets the CPU will be different.

ex:J1,j2 are jobs with 0 and 1 Arrival time and 3 and 2 burst time, so in FCFS the J1 gets CPU first and in SJF J2 gets it first..So response times are different.

and Waiting time is TAT-BT where TAT=CT-AT, so indirectly waiting time is dependent upon CT and AT,but considered different scheduling algorithm the CT will be different.

Hence for same job set (J1,J2,J3,J4) the average WT and avg RT will be different.

It will be same only in case of FCFS when all jobs Arrival Time is same.
selected by

Related questions

0 votes
0 votes
1 answer
1
Shivateja MST asked Jul 13, 2023
171 views
Like other allocation techniques, does Overlaying technique uses MMU? And how address translation takes place and security is maintained in Overlaying ?
2 votes
2 votes
2 answers
2
Sunnidhya Roy asked Dec 30, 2022
647 views
Can Safe state in DeadLock Avoidance Mechanism always guarantee No DeadLock??