Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A uni-processor computer system only has two ... Start Learning for Free
A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?
  • a)
    First come first served scheduling
  • b)
    Shortest remaining time first scheduling
  • c)
    Static priority scheduling with different priorities for the two processes
  • d)
    Round robin scheduling with a time quantum of 5 ms
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
A uni-processor computer system only has two processes, both of which ...
When Round Robin scheduling is used We are given that the time slice is 5ms. Consider process P and Q. Say P utilizes 5ms of CPU and then Q utilizes 5ms of CPU. Hence after 15ms P starts with I/O And after 20ms Q also starts with I/O. Since I/O can be done in parallel, P finishes I\O at 105th ms (15 + 90) and Q finishes its I\O at 110th ms (20 + 90). Therefore we can see that CPU remains idle from 20th to 105th ms. That is when Round Robin scheduling is used, Idle time of CPU = 85ms CPU Utilization = 20/105 = 19.05% When First Come First Served scheduling scheduling or Shortest Remaining Time First is used Say P utilizes 10ms of CPU and then starts its I/O. At 11th ms Q starts processing. Q utilizes 10ms of CPU. P completes its I/O at 100ms (10 + 90) Q completes its I/O at 110ms (20 + 90) At 101th ms P again utilizes CPU. Hence, Idle time of CPU = 80ms CPU Utilization = 20/100 = 20% Since only two processes are involved and I\O time is much more than CPU time, "Static priority scheduling with different priorities" for the two processes reduces to FCFS or Shortest remaining time first. Therefore, Round robin will result in least CPU utilization.
View all questions of this test
Most Upvoted Answer
A uni-processor computer system only has two processes, both of which ...
Explanation:

First come first served scheduling:
In first come first served scheduling, the processes are executed in the order in which they arrive. In this scenario, both processes will have equal priority and will be executed in a sequential manner. This means that one process will complete its 10ms CPU burst, followed by its 90ms I/O burst, and then the other process will start its CPU burst. This process will continue in a sequential manner. As a result, the CPU utilization will be high as there will be idle time when one process is waiting for its I/O burst to complete.

Shortest remaining time first scheduling:
In shortest remaining time first scheduling, the process with the smallest remaining burst time is given the CPU. In this scenario, both processes have equal burst times of 10ms CPU bursts and 90ms I/O bursts. Therefore, the CPU will alternate between the two processes, resulting in high CPU utilization.

Static priority scheduling with different priorities for the two processes:
In static priority scheduling, each process is assigned a priority value, and the process with the highest priority is given the CPU. In this scenario, both processes have equal priority. Therefore, the CPU will alternate between the two processes, resulting in high CPU utilization.

Round robin scheduling with a time quantum of 5 ms:
In round robin scheduling, each process is given a fixed time quantum to execute on the CPU. In this scenario, both processes have equal burst times of 10ms CPU bursts and 90ms I/O bursts. With a time quantum of 5ms, each process will get to execute for 5ms before being preempted and the other process will be given a chance to execute. This means that both processes will execute for half of their CPU burst time before being preempted. This will result in a lower CPU utilization compared to the other scheduling strategies, as the CPU will not be idle for long periods of time.

Therefore, round robin scheduling with a time quantum of 5ms will result in the least CPU utilization for this system.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer?
Question Description
A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer?.
Solutions for A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes can proceed in parallel. Which of the following scheduling strategies will result in the least CPU utilization (over a long period of time) for this system ?a)First come first served schedulingb)Shortest remaining time first schedulingc)Static priority scheduling with different priorities for the two processesd)Round robin scheduling with a time quantum of 5 msCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev