CPU Scheduling Algorithms-2 - Operating System Questions and Answers

1.

‘Aging’ is :

   A.) keeping track of cache contents
   B.) keeping track of what pages are currently residing in memory
   C.) keeping track of how many times a given page is referenced
   D.) increasing the priority of jobs to ensure termination in a finite time

Answer: Option 'D'

increasing the priority of jobs to ensure termination in a finite time

2.

One of the disadvantages of the priority scheduling algorithm is that :

   A.) it schedules in a very complex manner
   B.) its scheduling takes up a lot of time
   C.) it can lead to some low priority process waiting indefinitely for the CPU
   D.) none of these

Answer: Option 'C'

​it can lead to some low priority process waiting indefinitely for the CPU

3.

The FCFS algorithm is particularly troublesome for ____________

   A.) time sharing systems
   B.) multiprogramming systems
   C.) multiprocessor systems
   D.) operating systems

Answer: Option 'B'

In a time sharing system, each user needs to get a share of the CPU at regular intervals.

4.

Preemptive Shortest Job First scheduling is sometimes called :

   A.) Fast SJF scheduling
   B.) EDF scheduling – Earliest Deadline First
   C.) HRRN scheduling – Highest Response Ratio Next
   D.) SRTN scheduling – Shortest Remaining Time Next

Answer: Option 'D'

SRTN scheduling – Shortest Remaining Time Next

5.

Which of the following statements are true ? (GATE 2010)
i) Shortest remaining time first scheduling may cause starvation
ii) Preemptive scheduling may cause starvation
iii) Round robin is better than FCFS in terns of response time

   A.) i only
   B.) i and iii only
   C.) ii and iii only
   D.) i, ii and iii

Answer: Option 'D'

i, ii and iii

6.

Which of the following scheduling algorithms gives minimum average waiting time ?

   A.) FCFS
   B.) SJF
   C.) Round – robin
   D.) Priority

Answer: Option 'B'

SJF

7.

An SJF algorithm is simply a priority algorithm where the priority is :

   A.) the predicted next CPU burst
   B.) the inverse of the predicted next CPU burst
   C.) the current CPU burst
   D.) anything the user wants

Answer: Option 'A'

the predicted next CPU burst

8.

The most optimal scheduling algorithm is :

   A.) FCFS – First come First served
   B.) SJF – Shortest Job First
   C.) RR – Round Robin
   D.) None of these

Answer: Option 'B'

SJF – Shortest Job First

9.

A solution to the problem of indefinite blockage of low – priority processes is :

   A.) Starvation
   B.) Wait queue
   C.) Ready queue
   D.) Aging

Answer: Option 'D'

Aging

10.

The real difficulty with SJF in short term scheduling is :

   A.) it is too good an algorithm
   B.) knowing the length of the next CPU request
   C.) it is too complex to understand
   D.) none of these

Answer: Option 'B'

knowing the length of the next CPU request

11.

Consider the following set of processes, the length of the CPU burst time given in milliseconds :

   Process    Burst time
    P1           6
    P2           8
    P3           7
    P4           3

Assuming the above process being scheduled with the SJF scheduling algorithm 

   A.) The waiting time for process P1 is 3ms
   B.) The waiting time for process P1 is 0ms
   C.) The waiting time for process P1 is 16ms
   D.) The waiting time for process P1 is 9ms

Answer: Option 'A'

The waiting time for process P1 is 3ms


CPU Scheduling Algorithms-2 - Operating System Questions and Answers Download Pdf

Recent Posts