You are on page 1of 23

Ravindrababu Ravula www.ravindrababuravula.

com Ravindrababu Ravula

OS PRACTICE SET - 1
(Processes - States, PCB, Schedulers, Threads and System calls, CPU scheduling - FCFS,
SJFS, priority scheduling, Round robin, multi level queue scheduling, multilevel feedback queue
scheduling)
[Updated : 11/Sep/2020]

1) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using first come first serve scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 2 3

P3 6 2

P4 7 3

Solution : Average Turnaround Time = 5.25, Average Waiting Time = 2.00, Average
Response Time = 2.00, Throughput = 0.31 process/unit time.

2) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using first come first serve scheduling algorithm.

Process Arrival time Burst time

P1 1 5

P2 2 3

P3 3 8

P4 7 3

Solution : Average Turnaround Time = 9.75, Average Waiting Time = 5.00, Average
Response Time = 5.00, Throughput = 0.2 process/unit time

3) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using first come first serve scheduling algorithm.

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

P4 9 3

Solution : Average Turnaround Time = 7.50, Average Waiting Time = 2.75, Average
Response Time = 2.75, Throughput = 0.19 process/unit time

4) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using first come first serve scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67, Average
Response Time = 0.67, Throughput = 0.17 process/unit time

5) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using first come first serve scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 8

P3 8 8

Solution : Average Turnaround Time = 9.33, Average Waiting Time = 2.33, Average
Response Time = 2.33, Throughput = 0.13 process/unit time

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

6) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time and average waiting time using
Shortest Job first scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 2 3

P3 6 2

P4 7 3

Solution : Average Turnaround Time = 5.25, Average Waiting Time = 2.00, Average
Response Time = 2.00, Throughput = 0.31 process/unit time

7) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time and average waiting time using using
Shortest Job first scheduling algorithm.

Process Arrival time Burst time

P1 1 5

P2 2 3

P3 3 8

P4 7 3

Solution : Average Turnaround Time = 8.5, Average Waiting Time = 3.75, Average
Response Time = 3.75, Throughput = 0.2 process/unit time

8) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time and average waiting time using using
Shortest Job first scheduling algorithm.

Process Arrival time Burst time

P1 0 5

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

P2 7 3

P3 8 8

P4 9 3

Solution : Average Turnaround Time = 6.25, Average Waiting Time = 1.50, Average
Response Time = 1.50, Throughput = 0.19 process/unit time

9) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time and average waiting time using using
Shortest Job first scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67, Average
Response Time = 0.67, Throughput = 0.17 process/unit time

10) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using Non preemptive Priority scheduling algorithm.
(Higher number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 1

P2 2 3 2

P3 6 2 3

P4 7 3 4

Solution : Average Turnaround Time = 5.50, Average Waiting Time = 2.25, Average
Response Time = 2.25, Throughput = 0.31 process/unit time

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

11) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using Non preemptive Priority scheduling algorithm.
(Higher number implies higher priority)

Process Arrival time Burst time Priority

P1 1 5 1

P2 2 3 3

P3 3 8 5

P4 7 3 2

Solution : Average Turnaround Time = 11.00, Average Waiting Time = 6.25, Average
Response Time = 6.25, Throughput = 0.20 process/unit time

12) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using Non preemptive Priority scheduling algorithm.
(Higher number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 2

P2 7 3 1

P3 8 8 4

P4 9 3 0

Solution : Average Turnaround Time = 7.50, Average Waiting Time = 2.75, Average
Response Time = 2.75, Throughput = 0.19 process/unit time

13) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using Non preemptive Priority scheduling algorithm.
(Higher number implies higher priority)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

Process Arrival time Burst time Priority

P1 0 5 1

P2 7 3 2

P3 8 8 0

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67, Average
Response Time = 0.67, Throughput = 0.17 process/unit time

14) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using Non preemptive Priority scheduling algorithm.
(Higher number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 3

P2 7 6 1

P3 7 8 0

Solution : Average Turnaround Time = 8.33, Average Waiting Time = 2.00, Average
Response Time = 2.00, Throughput = 0.14 process/unit time

15) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using preemptive Priority scheduling algorithm. (Higher
number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 1

P2 2 3 2

P3 6 2 3

P4 7 3 4

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 2.75, Average
Response Time = 0.00, Throughput = 0.31 process/unit time

16) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using preemptive Priority scheduling algorithm.(Higher
number implies higher priority)

Process Arrival time Burst time Priority

P1 1 5 1

P2 2 3 3

P3 3 8 5

P4 7 3 2

Solution : Average Turnaround Time = 11.75, Average Waiting Time = 7.00, Average
Response Time = 1.50, Throughput = 0.21 process/unit time

17) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using preemptive Priority scheduling algorithm.(Higher
number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 2

P2 7 3 1

P3 8 8 4

P4 9 3 0

Solution : Average Turnaround Time = 9.00, Average Waiting Time = 4.25, Average
Response Time = 2.25, Throughput = 0.19 process/unit time

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

18) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using preemptive Priority scheduling algorithm.(Higher
number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 1

P2 7 3 2

P3 8 8 0

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67, Average
Response Time = 0.67, Throughput = 0.17 process/unit time

19) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using preemptive Priority scheduling algorithm. (Higher
number implies higher priority)

Process Arrival time Burst time Priority

P1 0 5 3

P2 7 6 1

P3 7 8 0

Solution : Average Turnaround Time = 8.33, Average Waiting Time = 2.00, Average
Response Time = 2.00, Throughput = 0.14 process/unit time

20) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using SRTF scheduling algorithm.

Process Arrival time Burst time

P1 0 5

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

P2 2 3

P3 6 2

P4 7 3

Solution : Average Turnaround Time = 5.25 Average Waiting Time = 2.00 Average
Response Time = 2.00 Throughput = 0.31 process/unit time

21) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using SRTF scheduling algorithm.

Process Arrival time Burst time

P1 1 5

P2 2 3

P3 3 8

P4 7 3

Solution : Average Turnaround Time = 8.25, Average Waiting Time = 3.50, Average
Response Time = 2.75, Throughput = 0.21 process/unit time

22) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using SRTF scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

P4 9 3

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

Solution : Average Turnaround Time = 6.25, Average Waiting Time = 1.50, Average
Response Time = 1.50, Throughput = 0.19 process/unit time

23) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using SRTF scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67, Average
Response Time = 0.67, Throughput = 0.17 process/unit time

24) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using SRTF scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 8

P3 8 8

Solution : Average Turnaround Time = 9.33, Average Waiting Time = 2.33, Average
Response Time = 2.33, Throughput = 0.13 process/unit time

25) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using RR scheduling algorithm, time quantum=2.

Process Arrival time Burst time

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

P1 0 5

P2 2 3

P3 6 2

P4 7 3

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 2.75, Average
Response Time = 1.00, Throughput = 0.31 process/unit time

26) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using RR scheduling algorithm, time quantum=3.

Process Arrival time Burst time

P1 1 5

P2 2 3

P3 3 8

P4 7 3

Solution : Average Turnaround Time = 10.25, Average Waiting Time = 5.50, Average
Response Time = 2.75, Throughput = 0.29 process/unit time

27) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using RR scheduling algorithm, time quantum=2.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

P4 9 3

Solution : Average Turnaround Time = 8.25, Average Waiting Time = 3.50, Average
Response Time = 0.75, Throughput = 0.24 process/unit time

28) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using RR scheduling algorithm, time quantum=2.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Solution : Average Turnaround Time = 6.67, Average Waiting Time = 1.33, Average
Response Time = 0.33, Throughput = 0.17 process/unit time

29) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, average turn around, average
response time and throughput, using RR scheduling algorithm, time quantum=1.

Process Arrival time Burst time

P1 0 5

P2 7 8

P3 8 8

Solution : Average Turnaround Time = 11.67, Average Waiting Time = 4.67, Average
Response Time = 0.00, Throughput = 0.13 process/unit time

30) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, and average turn around, using HRRN
scheduling algorithm.

Process Arrival time Burst time

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

P1 0 5

P2 2 3

P3 6 2

P4 7 3

Solution : Average waiting time: 2.000000, Average Turn Around time: 5.250000

31) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, and average turn around, using HRRN
scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

P4 9 3

Solution : Average waiting time:1.5, Average Turn Around time:6.25

32) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, and average turn around, using HRRN
scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 3

P3 8 8

Solution : Average Turnaround Time = 6.00, Average Waiting Time = 0.67

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

33) Consider the process information for set of processes, assuming the context switch
delay to be 0, calculate the average waiting time, and average turn around, using HRRN
scheduling algorithm.

Process Arrival time Burst time

P1 0 5

P2 7 8

P3 8 8

Solution : Average Turnaround Time = 9.33, Average Waiting Time = 2.33


36) Which of the following is used to obtain OS services:

(a) Hardware (b) System calls


(c) Both A & B (d) None of the above

Solution: Option (b)

37) If we disable interrupts, it is not possible to

(a) invoke system calls (b) preempt process from CPU


(c) indicate compilation of I/O (d) All of the above

Solution: Option (d)

38) Which is the service not provided by an OS

(a) File system manipulation (b) Memory management


(c) Process scheduling (d) None of the above

Solution: Option (d)

39) Process control block does not contain

(a) Process ID (b) User identification number


(c) Registers (d) None of the above

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

Solution: Option (d)

40) Which of the process transitions is invalid?

(a) Run📫Ready (b) Suspend wait 📫 Suspend ready


(c) Wait/Block📫Run (d) None of the above

Solution: Option (c)

41) In which of the following case CPU utilization will be higher?

(a) If all the processes are I/O bound


(b) Is all the processes are equally CPU bound and I/O bound
(c) If all the processes are CPU bound
(d) Both (B) and (C)

Solution: Option (c)

42) The process in which of the following states will be in secondary memory?

(a) New, Ready, Wait/Block


(b) New, Wait/Block, Suspend wait, Suspend ready
(c) wait/Block, Suspend wait, Suspend ready
(d) New, Suspend wait, Suspend ready

Solution: Option (d)

43) Degree of multiprogramming is controlled by

(a) Long term schedule (b) Short term schedule


(c) Medium term schedule (d) Depends on number of CPU’s

Solution: Option (a)

44) Which of the following affects the performance of the CPU?

(a) LTS (b) STS


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula
Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

(c) MTS (d) All of the above

Solution: Option (d)

45) Which technique was introduced because a single job could not keep both the CPU and I/O
devices busy?

(a) Time- sharing (b) Spooling


(c) Preemptive scheduling (d) Multiprogramming

Solution: Option (d)

46) Consider a system with ‘M’ CPU processors and ‘N’ processes then how many processes can
be present in ready, running and blocked state at minimum

(a) 1,0,0 (b) 0,1,1


(c) 1,1,0 (d) 0,0,0

Solution: Option (d)

47) Consider a system with ‘M’ CPU processors and ‘N’ processes then how many processes can
be present in ready, running and blocked state at maximum

(a) N, M, N (b) N, M, M
(c) M, N, M (d) N, N+M, M

Solution: Option (a)

49) Turnaround time TAT of a process P is

(a) CTi – Ati where CTi is Completion time and ATi is Arrival time
(b) BTi + WTi where BTi is Burst time and WTi is Waiting time
(c) None of the above
(d) Both (a) and (b)

Solution: Option (d)

50) What are the typical elements of a process image?


(a) User data

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

(b) System Stack


(c) Process control Block
(d) All of the above
Solution : Option (d)

51) What is the output of the following code :

int main()
{
fork();
printf("Hello world!");
return 0;
}

Solution : Hello world! Hello world!

52) The number of child processes are created using the following code :

int main()
{
fork();
fork();
fork();
return 0;
}

Solution : 7

53) The possible value of x are :

int main()
{
int x = 1;

if (fork() == 0)
printf("Child has x = %d\n", ++x);
else
printf("Parent has x = %d\n", --x);
}
Solution : 0,2

54) Which one of the following is not shared by threads?

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

A. program counter

B. stack

C. both (A) and (B)

D. none of the mentioned

Solution : C

55) Differentiate between User level and Kernel level threads.

Solution :
Factors User Level Threads Kernel Level Threads

Implementation implemented by users kernel threads are implemented by


OS.

OS Support OS doesn’t recognize user level Kernel threads are recognized by OS


threads

Implementation Implementation of User threads Implementation of Kernel thread is


Complexity is easy. complicated.

Context switch Context switch time is less. Context switch time is more.

Hardware Context switch requires no Hardware support is needed.


Support for hardware support
Context switch

If one user level thread perform If one kernel thread perform blocking
Impact of IO blocking operation then entire operation then another thread can
calls process will be blocked. continue execution.

56) Does FCFS suffers from Convoy Effect?

(a) Yes (b) No


(c) Not defined (d) None

Solution: Option (a)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

57) What is the drawback of SJF Algorithm?

(a) SJF has minimum Avg. TAT and Avg. WT.


(b) It is practically not possible to predict Burst time
100% accurately before even executing the process.
(c) SJF does not have any Convoy Effect
(d) None of the above

Solution: Option (b)

58) Consider the processes and Burst times as shown below which follows SJF scheduling
algorithm:
Processes AT BT
P1 0 4
P2 0 2
P3 1 5
P4 1 3

What is the average Response time?

(a) 3.75 ms (b) 3.5 ms


(c) 0.35 ms (d) 1.35 ms

Solution: Option (b)

59) Which of the following algorithms gives minimum average Response time?

(a) FCFS (b) SJF


(c) Round Robin (d) Priority

Solution: Option (c)

60) When a process is using CPU and if an interrupt occurs, the process will be moved to:

(a) Wait Queue (b) Ready Queue


(c) Job Queue (d) None of the above

Solution: Option (b)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

61) The main function of dispatcher is:

(a) swapping a process to disk


(b) assigning ready process to the CPU
(c) suspending some of the processes when CPU load is high
(d) bring processes from the disk to main memory

Solution: Option (b)

62) In real time Operating System, which of the following is the most suitable scheduling
scheme?

(a) Round Robbin (b) FCFS


(c) Random (d) Priority

Solution: Option (d)

63) Round Robin scheduling is more suitable when:

(a) Minimum Context switches are needed.


(b) More interaction is needed by the tasks.
(c) High priority processes needs to be completed first.
(d) None of the above

Solution: Option (b)

64) Which is a Non-Preemptive Scheduling algorithm?

(a) Round Robin (b) Priority base


(c) Shortest Job Next (d) Shortest Remaining Time first

Solution: Option (c)

65) In Round Robin Scheduling Algorithm if Time Quantum is very small it results in:

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

(a) Maximum Average Waiting Time (b) Minimum Average Waiting Time
(c) More number of Context Switches (d) None of the above

Solution: Option (c)

66) In Round Robin if the Time Quantum is very large then it will behave as:

(a) FCFS (b) SJF


(c) Priority (d) None

Solution: Option (a)

67) Which of the following information is not part of Process Control Block?

(1) Process State


(2) Process Page table
(3) List of Open files
(4) Stack Pointer

(a) Only 3 (b) 3 & 4


(c) 2 and 4 (d) None

Solution: Option (d)

68) Given n-processes (P1, P2,…..Pn) and bti is the actual burst time of P i and bt1, bt2,…., btn are
the burst times of a processes P 1, P2,…Pn. What is the predicted burst time for process P i using
Simple Average?
n+1
1
(a) Tn+1 = n ∑ bti
i=1

1 n
(b) Tn+1 = + n ∑ bti
n
i=1

n
1
(c) Tn+1 = n ∑ bti
i=1

1
(d) Tn+1 = n
∑ bti
2n
i=1

Solution: Option(c)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

69) Consider the actual Burst time of the processes are 2, 5, 3, 9, 6 respectively. What is the
predicted Burst time of the next process using simple average?

(a) 25 (b) 5
(c) 10 (d) 15

Solution: Option (b)

70) What is the predicted burst time for process Pi where tn is the actual burst of previous process
and Tn is the predicted burst time of the previous process.

(a) Tn+1 = ∝T n + (1 − ∝) 0≤ ∝ ≤1
tn−1
0≤ ∝ ≤1
(b) Tn+1 = ∝tn + (1 − ∝) T n

(c) Tn+1 = ∝tn + (1 − ∝) T n 0< ∝ <1

(d) N one of the above

Solution: Option (b)

71) If 𝛼=0.4 and T1=10. Consider the actual burst times of t1, t2, t3 are 5, 7, 2 respectively. What
is the predicted burst time of t4 using Exponential Average method?

(a) 3.36 (b) 4.3


(c) 5.36 (d) 6.66

Solution: Option (c)

72) Consider the processes P1, P2, P3, P4 whose arrival times are 1, 5, 9, 10 and burst times are 4,
3, 5, 2 respectively. If the processes follow FCFS, what is the CPU idle time?

(a) 14/16 (b) 12/16


(c) 1/4 (d) 1/8

Solution: Option (d)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula


Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

73) When two or more processes trying to execute a set of instructions and if the output depends
on the order of execution of the process, this is termed as:

(a) Critical section (b) Race condition


(c) Synchronization (d) None

Solution: Option (b)

Ravindrababu Ravula www.ravindrababuravula.com Ravindrababu Ravula

You might also like