GATE CS CPU Scheduling questions
Practise CPU Scheduling questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Consider a CPU that has to execute two types of processes. The first type, Actuators (A), requires a CPU burst of seconds. The second type, Controllers (C), requires a CPU burst of seconds. A new process of type A arrives at time , , and (in seconds). Similarly, a new process of type C arrives at time …
Which one of the following CPU scheduling algorithms cannot be preemptive?
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests for an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready …
A computer has two processors, and . Four processes with CPU bursts of , and milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows: uses priority …
Processes arrive in that order at times , and 8 milliseconds respectively, and have execution times of , and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times. Which ONE of the following correctly gives the average …
Which of the following process state transitions is/are NOT possible?
Consider a single processor system with four processes and , represented as given below, where for each process the first value is its arrival time, and the second value is its burst time. , and . Which one of the following options …
Which one or more of the following scheduling algorithms can potentially cause starvation?
Consider four processes and scheduled on a as per round robin algorithm with a time quantum of The processes arrive in the order all at time There is exactly one context switch from to exactly one context switch from …
Three processes arrive at time zero with bursts of and milliseconds. If the scheduler has prior knowledge about the length of the bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _____________ milliseconds.
Which of the following statement(s) is/are correct in the context of scheduling?
Consider the following statements about process state transitions for a system using preemptive scheduling. A running process can move to ready state. A ready process can move to running state. A blocked process can move to running state. A blocked process can move to ready state. Which of the above statements are TRUE?
Consider the following set of processes, assumed to have arrived at time . Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order. …
Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: …
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below: …
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority ( is the highest priority) shown below. None of the process have I/O burst time …
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first. …
Consider a uniprocessor system executing three tasks and each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of and milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of …
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time? …
