0 0 votes a) CPU Utilization is highest in the case of SJF scheduling. b) Total waiting time is highest in case of Round Robin scheduling. Operating System operating-system process-scheduling + – Naveen Kumar 3 1.8k views answer comment Share Follow Print See all 13 Comments 13 13 Comments reply Magma commented Sep 23, 2018 reply Follow flag B) true A) I have doubt ..but if this question is asked in gate..I tick "true" because SJF have maximum throughput 1 1 replyShare Naveen Kumar 3 commented Sep 24, 2018 reply Follow flag can we say, round robin waiting time is highest then it has least cpu utilisation ? 0 0 replyShare arvin commented Sep 24, 2018 reply Follow flag @magma : dont u think there is a difference between cpu utilization and throughput.. as cpu utilization is the amount of time cpu will be busy exection given process. 0 0 replyShare Magma commented Sep 24, 2018 reply Follow flag Hmmm That means we measure CPU utilization by it's "efficiency" right ?? 0 0 replyShare arvin commented Sep 24, 2018 reply Follow flag yes right. 1 1 replyShare Magma commented Sep 24, 2018 reply Follow flag then a) is FALSE ?? 0 0 replyShare arvin commented Sep 24, 2018 reply Follow flag yes as each scheduling will have equal utilization of cpu. 1 1 replyShare Magma commented Sep 24, 2018 reply Follow flag hmm thanks bro 0 0 replyShare Naveen Kumar 3 commented Sep 24, 2018 reply Follow flag @ arvin what does CPU utilization mean here : https://gateoverflow.in/963/gate2003-77 0 0 replyShare arvin commented Sep 24, 2018 reply Follow flag i just didnt added that it will be divided by total run time... because CPU utilization is given in term of percentage... see they have considered a case where you have i/o time also defined for the system along with cpu time and when there will be much more ambiguity if we consider i/o burst time... . the question in the link is a uniprocessor and process are repeating alternately in that case... and here we dont have any data(specific). 0 0 replyShare MiNiPanda commented Sep 24, 2018 reply Follow flag Almost all the processes undergo cycles of CPU and I/O bursts. In real systems CPU utilization ranges from 40% to 90%. In case of FCFS, consider a situation that a long process appears and executes inside CPU while the shorter ones wait in the ready queue. Once longer one is done (done means maybe it terminates or requests for I/O) then the shorter ones in the queue will get their turn for CPU bursts while this longer goes for the I/O. Now shorter ones are done executing in CPU and comes for I/O and again they have to wait because this longer process is already there. At this point of time CPU remains idle. So this idleness will reduce the CPU utilization. In case of Round Robin about 10% of CPU time is wasted on context switching. Also if you go through the solution in https://gateoverflow.in/963/gate2003-77 we can see that CPU utilization is lesser than others. In case of priority scheduling it depends on which basis the priority is given. If longer ones are given more priority then it may become same as the case that i mentioned in FCFS. If shorter ones are given more priority then it becomes same as SJF. In case of SJF, since shorter ones are executed first so once the shorter processes have their CPU bursts they will move for I/O meanwhile the longer ones occupy CPU. When these are done with I/O bursts then they go for CPU again. Since these are shorter processes so they will need less time in I/O and will come back quickly for CPU..maybe even before the longer ones are done having their CPU bursts..So CPU hardly stays idle. Among all these scheduling algorithms I think SJF has the highest CPU utilization. SRTF can improve the waiting time but I doubt if it has any extra improvement on CPU utilization. I have searched about it but couldn't find any specific answer. These are what I concluded. Correct me if I am wrong. I also took an example to check and SJF gave me the highest CPU utilization. 2 2 replyShare arvin commented Sep 25, 2018 reply Follow flag can u give that example that u took.. @minipanda 0 0 replyShare MiNiPanda commented Sep 25, 2018 reply Follow flag @arvin This one.. 0 0 replyShare Please log in or register to add a comment.