7.os Question Bank
7.os Question Bank
Technology
CSE Department
Operating System (303105251)
Question Bank
Year: 2023-2024
Question Bank
Subject Name: Operating System
Subject Code: 303105251
Page 2 of 8
2 Consider Five Processes P1 to P5 arrived at same time. They 7
have stimated running time 10,2,6,8 and 4 seconds, respectively.
Their Priorities are 3,2,5,4 and 1, respectively with 5 being
highest Priority. Find the average turnaround time and average
waiting time for Round- Robin(q=3) and Priority Scheduling
algorithm.
3 Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. 7
The drive is currently serving a request at cylinder 143,. The
queue of pending requests,in FIFO order, 86, 1470, 913, 1774,
948, 1509, 1022, 1750, 130 Starting from current head position
what is total distance (in cylinders) that disk arm moves to satisfy
all the pending request for FCFS and SSTF disk scheduling
algorithm?
4 Explain process control block with diagram 7
7
5 Difference between process and thread. 4
6 What is scheduler? Explain queuing diagram representation of 4
process scheduler with figure
7 7
Co
nsider the following five processes with the length of the CPU
burst time in milliseconds. Processes are Assumed to have arrived
at time 0. Priority For the above set of processes find the average
waiting time and average around time for each of the following
scheduling algorithm using Gantt chart. Consider 1 is highest
priority.
1. SJF
2. Non preemptive Priority
3. RR ( Q = 2)
8 Suppose Disk drive has 300 cylinders. The current position of 7
head is 90. The queue of pending request is
36,79,15,120,199,270,89,170 Calculate head movement for the
following algorithms.
1. FCFS 2. SSTF
9 Explain the classical thread model with its implementation 7
strategies.(Explain Thread Life Cycle with diagram.)
Page 3 of 8
11 .Explain Swapping and Fragmentation in detail. 7
Igno
re process switching overhead. Find average turnaround time for
following scheduling algorithm. Round robin (quantum = 1 sec),
Shortest Job First.
14 Explain thread implementation in user space with its advantages 7
and
disadvantages.
15 Differentiate between preemptive and non-preemptive scheduling. 7
Solve following by SJF preemptive and non-preemptive. Draw
Gantt Chart, Average Waiting Time and Average Turnaround
Time. Which one is better as per average turnaround time?
Page 4 of 8
1 What Critical section Problem and list the requirements to solve 7
it. Write Peterson’s Solution for the same. 4
7
2 7
7
Consider the snapshot of the system with Five Processes and Four
types of resources A,B,C,D.Currently Available set of resources is
(1,5,2,0). Answer the following Questions using bankers
algorithm.
1) Find the content of Need Matrix.
2) Is the System in Safe State?
3) If request from Process P1 arrives for (0,4,2,0) can the request
be granted immediately.
3 List Deadlock Recovery Techniques and explain one of them. 3
4 Define: Starvation 1
5 What is Deadlock? List the conditions that lead to deadlock. How 7
Deadlock can be prevented?
Page 5 of 8
6 Explain the use of Banker’s Algorithm for multiple resources for 7
DeadlockAvoidance with illustration.
Page 6 of 8
1,2,3,4,5,3,4,1,6,7,8,7,8,9,7,8,9,5,4,5,4,2
1. FIFO
2. OPTIMAL
11 Explain the following allocation algorithms: 1) First-fit 2) Best-fit 7
3) Worst-fit
12 If FIFO page replacement algorithm is used with 4 page frames 7
and 8 pages, how many page faults will occur with reference
string 0124720347 if four page frames are initially empty? Solve
the same problem for LRU page replacement algorithm.
13 What is called segmentation? How it differs from paging? 7
1 Draw the block diagram for DMA. Write steps for DMA data 7
transfer. 3
6 Disk requests come in to the disk driver for cylinders 10, 22, 20, 7
2, 40, 6, and 38, in that order. A seek takes 6 msec per cylinder
Page 7 of 8
moved. How much seek time is needed for
1. First-come, firExplain all Accessing Methods of File.st served
2. Elevator algorithm. (initially moving upward) In all cases, the
arm is initially at cylinder 20.
7 Briefly describe SCAN. 4
Page 8 of 8