OS Question Bank
OS Question Bank
OPERATING SYSTEM
SUBJECT CODE :ETCST304
2 MARK QUESTIONS
6 MARK QUESTIONS
1. Explain different types of OS.
2. Explain the Process State transition diagram.
3. Explain OS as resources manager
4. Define operating system and list the basic services provided by operating system.
5. Explain process states and process control block in details
6. Describe the fields in a process control block (PCB).What is switching overhead?
LONG QUESTIONS
1. Five batch jobs A to E arrive at same time. They have estimated running times 10,2,6,8,4
minutes. Their priorities are 3,2,5,4,1 respectively with 5 being highest priority. For each of
the following algorithm determine mean process turnaround time. Ignore process swapping
overhead. Round Robin (q=3), Priority Scheduling, FCFS, SJF.
2. Assume arrival order is: P1, P2, P3, P4, P5 at time 0,1,2,3,4 respectively and a smaller priority
number implies a higher priority. Draw the Gantt charts for preemptive and non-preemptive
priority scheduling. Calculate Average Turnaround Time and Average Waiting Time.
3. What are various criteria for a good process scheduling algorithm? Explain any two
preemptive scheduling algorithms in brief.
4. Explain the following process scheduling algorithm :
a) Priority scheduling
b) Shortest job first scheduling
5. Consider following processes with length of CPU burst time in milliseconds
Process Burst time
P1 5
P2 10
P3 2
P4 1
All process arrived in order p1, p2, p3, p4 all time zero . Draw Gantt charts illustrating
execution of these processes for SJF and round robin (quantum=1)
a) Calculate waiting time for each process for each scheduling algorithm
B) Calculate average waiting time for each scheduling algorithm
6. Consider following processes with length of CPU brust time in millisecond
Process Brust time Priority
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
All processes arrived in order p1, p2, p3, p4, p5 all at time zero. Draw Gant charts illustrating
execution of these processes for SJF, non preemptive priority (smaller priority number
implies a higher priority) & round robin(quantum=1) Calculate turnaround time for each
process . Calculate waiting time for each scheduling .
2 MARK QUESTIONS
1. Define context switching?
2. Describe how the scheduler is responsible for good process mix ?
3. Define Mutual Exclusion?
4. Define current process and its type?
5. Define critical section?
6. Define Race Condition?
7. What are the necessary conditions for deadlock?
8. Differentiate between page and frame ?
9. What is thrashing ?
10. Differentiae between page and frame?
11. What is Virtual Memory? Explain.
6 MARK QUESTIONS
1. Explain process synchronization with Queing diagram?
2. What are the memory allocation methods used?
3. What are the conditions for deadlock? Explain deadlock detection and recovery in detail.
4. What is monitor? Give the implementation of Bounded Buffer Producer Consumer Problem
using monitor.
5. What is Semaphore? Give the implementation of Readers-Writers Problem using
6. Semaphore.
7. What do you mean by Deadlock Avoidance? Explain the use of Banker’s Algorithm for Deadlock
Avoidance with illustration.
8. Explain deadlock prevention in detail.
9. What is deadlock? Explain its model with example. Explain any three methods of dealing with
deadlock.
10. A system has three types of resources R1 R2 R3 and their number of units are 3, 2, 2
respectively. Four processes P1 P2 P3 p4 are currently competing for these resources in
following number.
a) P1 is holding one unit of R1 and is requesting for one unit of R2.
b) P2 is holding two units of R2 and is requesting for one unit each of R1 and R3.
c) P3 is holding one unit of R1 and is requesting for one unit of R2.
d) P4 is holding two units of R3 and requesting for one unit of R1.
Write down the safe sequence ?
11. Compare Multiprogramming with Fixed Partition and multiprogramming with Variable Partitions
with diagram.
12. Explain swapping in memory management.
13. Explain the various page replacement strategies ?
LONG QUESTIONS
1. What is Deadlock? List the conditions that lead to deadlock. How Deadlock can
be prevented?
2. What is Deadlock? List the conditions that lead to deadlock. How Deadlock can
3. What is paging? What is Page Table? Explain the conversion of Virtual Address
to Physical Address in Paging with example.
4. Given memory partition of 100K, 500K, 200K, 300K, and 600K in order, how would each of
the First-fit, Best-fit and Worst-fit algorithms place the processes of 212K, 417K, 112K and
426K in order? Which algorithm makes the most efficient use of memory? Show the diagram
of memory status in each case.
5. For the Page Reference String:
7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0. 1. 7, 0, 1
Calculate the Page Faults applying (i)Optimal(ii)LRU and(iii)FIFO Page replacement algorithm
2 MARK QUESTIONS
6 MARK QUESTIONS
LONG QUESTIONS
1. Disk requests come in to the disk for cylinders 10, 22, 20, 2, 40, 6 and 38. A seek takes 6
msec per cylinder move. How much seek time is for Closest cylinder next algorithm?
Initially arm is at cylinder 20.Starting track at 100.The queue of pending request is,
55,58,39,18,90,160,150,38,184 – FCFS, SCAN ( elevator), SSTF,C SCAN .
2. Suppose that a disk drive has 1000 cylinders, numbered 0 to 999. Assume last request
received was at track 345 and the head is moving towards track 0. The queue of pending
requests, in FIFO order, is 123,874,692,475,105,367. Perform following scheduling
algorithm. FIFO , SSTF,SCAN,LOOK,C-SCAN,C-LOOK
3. Explain briefly how operating system is responsible for disk management ?
2 MARK QUESTIONS
6 MARK QUESTIONS
LONG QUESTIONS
11.Give the role of “Kernel” and “Shell” in UNIX.
1. Explain briefly file system architecture & file management function.
2. Explain architectural features of WINDOWS-7.
3. A) Explain process and thread management WINDOWS- 7 in detail.
B) Explain in brief concurrency control supported by WINDOWS -7.