OS Question Bank
OS Question Bank
MODULE-2
1. Discuss various multithreading models with diagram. (06Marks,June09, 05 M Jan 20)
2. Consider the following set of processes.
Process Burst time Arrival Time Priority
P1 10 0 2
P2 5 2 1
P3 2 3 0
P4 20 5 3
Draw Grant charts and calculate average waiting time average turnaround time using following CPU
scheduling algorithms.
i) Preemptive shortest Job First.
ii) Non preemptive priority (= HIGH Priority)
(08 Marks,June09, 06 marks, June 2018)
3. Consider the following set of processes:
Process Arrival time Burst time
P1 0 1
P2 1 9
P3 2 1
P4 3 9
i) Draw Gantt charts showing the execution of these processes using FCFS, preemptive SJF,
non-preemptive SJF and RR (Quantum – 1) scheduling schemes
ii) Compute the turnaround time and waiting time for each process for each of schemes above.
iii) Compute the average turnaround time and average waiting time in each scheme and above.
(11Marks,May10)
4. For the following examples calculate average waiting time and average turnaround time by FCFS,
preemptive SJF, and RR( 1 time unit) CPU scheduling algorithm.
Jobs Arrival time Burst time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
(08Marks,June12)
5. For the following set of processes. Find the average waiting time and average turnaround time along
with Gant chart illustration for (06Marks,Dec12)
i) Shortest remaining time first ii) preemptive priority scheduling algorithm
6. Explain the benefits of multi threading programming (08Marks,Dec11,06M Jun 18,04 M Jan 19)
7. Explain hard real time system (04Marks,Dec11)
8. Differentiate between a. Process and thread b. Short term and medium term schedules c. Waiting and
Turnaround time. (08Marks,Jan14, Jan15)
9. State the dining philosopher’s problem and give a solution for the same, suing semaphores. Write the
structure of philosopher. (10Marks,Dec09,Jan14,06 marks, june 2018)
10. Consider the following data about processes
P3 4 3 1
P4 4 1 1
P5 5 3 i.
i) Draw charts to illustrate execution using SRTF, preemptive priority and RR (TS = 1 msec).
ii) Compute waiting time in each of the cases.
iii) Which of them provide minimal average waiting time and turnaround time?
Find out the time at which there are maximum numbers of processes in the ready queue in the scenario?
(10Marks,Dec 08)
11. Describe the Bounded –buffer problem and give a solution for the same using semaphores. Write the
structure of producer and consumer processes. (08Marks,June09)
12. Suppose four processes arrive for processing in the order P1, P2 P3, and P4 with burst times and priorities
as given below:
Process P1 P2 P3 P4
Burst time 7 4 3 5
Priority 3 4 2 1
Draw the Gantt charts and calculate the average waiting time for the following algorithms:
i) First Come First Served ii) Shortest Job First iii) Priority scheduling (08Marks,Dec10)
13. What are semaphores? Explain the solution to procedure- consumer problem using semaphores
(08Marks,June11)
14. What are monitor? Explain it (04Marks,June11,06 marks, June 2018)
15. What is critical section problem? How does a semaphores solve the crtical section problem?
Discuss whether semaphores satisfy the three requirement for a solution to a critical section problem
(08Marks,June12)
16. Define mutual exclusion and critical section problem. write the software solution for 2- process
synchronization (07Marks,Dec12)
17. What is semaphores? Explain how it can be used to solve producer consumer problem .
(07Marks,Dec12)
18. Explain the solution for dining –philosopher problem using monitors (06Marks,Dec12, 08 M
Jun 19, 05 M Jan 20)
19. What is race condition? Explain Reader’s Writer’s problem with semaphores (10 Marks, Jan14, 08 M
Jun 19, 08 M Jan 20, 05 M Jan 20)
20. Explain test and set instruction and explain mutual exclusion using test and set instructions
(05Marks,Dec11)
21. Consider the following set of processes, with the length of the CPU burst given in milliseconds.
Burst Priority
Process time
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
i) Draw the Gantt charts for the following scheduling algorithms, FCFS, SJF and RR
(quantum=1)
ii) Find out turn around time and waiting of each process for each of these scheduling algorithm
and also find out average turn around time and average waiting time.
(12 Marks,June17, 08 marks, June 2018)
22. Define Semaphore. Explain its usage and implementation (06 Marks,June17)
MODULE-3
1. Describe the necessary conditions for a deadlock situation to arise, in a system. (04Marks,Dec 09)
2. Consider the following snapshot of a system:
Allocation Maximum Available
A B C D A B C D A B C D
0 0 1 2 0 0 1 2 1 5 2 0
1 0 0 0 1 7 5 0
2 3 5 4 2 3 5 6
0 6 3 2 0 6 5 2
0 0 1 4 0 6 5 6
5. Consider the Resource allocation graphs given in fig.Q4(c ) (i)and (ii), Check whether deadlock exists
in the system, if yes, identify the processes involved in deadlock. (05Marks,June09,05 M Jan 20)
6. What are monitors? Explain its usage and implementation (08 Marks, June17)
7. Define the terms: safe state and safe sequence. Give an algorithm to find whether or not a system is
in a safe state. (10Marks,Dec10)
8. What is dead lock? explain the necessary conditions for its occurrence
(08Marks,June12,June11)
9. Consider the system
17. What is a deadlock? List the necessary conditions for a deadlock to occur.
(12Marks,Dec10,06 marks, June 2018, 06 M Jan 19, 05M Jan 20)
18. Illustrate with example, the internal and external fragmentation problem encountered in continuous
memory allocation. (07 M Jan 19, 04M Jan 19,05 M Jan 20)
19. Analyze the problem in simple paging techniques and show TLB is used to solve the problem.
(08M Jan 19, 06M Jan 20)
20. Memory partitions of 100KB, 500KB, 200KB, 300KB, 600KB (in order) are available. How would
first – fit, best – fit and worst – fit algorithms place processes of 212KB, 417KB and 426KB (in order).
Which algorithm makes the most efficient use of memory?(06M Dec08, Jan14, 06 M Jan 20)
21. Given the memory partition of 200K, 700k,500k,300k,100k,400k. Apply first fit, best fit to place
315k, 427k, 250k, 550k (04M Jan 19)
22. What is paging and swapping? (04Marks,Dec09,Jan14,06 marks, June 2018)
MODULE-4
1. With a diagram, discuss the steps involved in handling a page fault. (06Marks,Dec09, 08 M Jun 19)
2. Consider the following page reference stream:1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7,6, 3,2,1, 2, 3, 3. How
May page faults would occur for LRU, FIPO and Optimal replacement algorithms assuming 3 and 5
frames? Which one of the above is most efficient? (10Marks,Dec08)
3. Explain the structure of page table. (09Marks,Jun 19)
4. Illustrate how demand paging affects system performance. (08M Jun 19, 08M Jan 19, 05 M Jan 20)
5. Consider the following reference string : 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. Assuming three
frames, all initially empty, how many page faults would occur for i) LRU ii) FIFO iii) Optimal page
replacement algorithms? Which of the algorithms is most efficient in this case?
(12Marks,May10)
6. Consider the following page reference string:1,2,3,5,2,3,5,7,2,1,2,3,8,6,4,3,2,2,3,6
How many page faults would occur in the case of (08Marks,June11)
i) LRU
ii) FIFO
iii) Optimal algorithm.
Assuming 3 frames note that initially all frames are empty
7. Explain the multistep processing of a user program with a neat block diagram. (05 M, June 2017)
8. Explain segmentation with an example. (06 Marks, June 2017)
9. Consider the following segment table:
What are the physical addresses for the following logical addresses?
MODULE-5
1. A disk drive has 200 cylinders numbered from 0 to 199. The disk head is initially at cylinder 53. The
queue of pending requests in FIFO order is: 98, 183, 37, 122, 14, 124, 65, 67. Starting from the current
head position, what is the total distance traveled (in cylinders ) by Illustrate with figures in each case.
(12Marks,Dec09, Jan 14)
2. A drive has 5000cylinders numbered 0 to 4999. The drive is currently serving a request at cylinder
143 and the previous request was at cylinder 125. The queue of pending requests in FIFO order is :
86, 1470, 913, 1773, 948, 1509, 1022, 1750, 130. Starting from the current head position, what is the
total distance travelled (in cylinders) by the disk arm to satisfy the requests using algorithms FCFS,
SSTF, SCAN, LOOK. Illustrate with figures in each case. (10M Dec12,June11,May11,June09)
3. Explain the following disk scheduling algorithms in brief with examples.
i) FCFS Scheduling ii) S S T F Scheduling iii) S C A N Scheduling
(12Marks,June11) . (10 Marks, June 17) (06 marks, June 18, 08 M Jan 20, 09 M Jun 19)
4. Suppose the position of cylinder is at 53. Sketch the graphical representation for the queue of pending
requests in the order -98, 183, 37, 122, 14, 124, 65, 67, for FCFS, SSTF and LOOK scheduling
schemes. Give your comment on this scenario for the above schemes.
(12Marks,June09, July 14)
5. What is swap space management? Explain. (05Marks,June12, Jan14)
6. Explain the access matrix model of implementing protection in operating system (05Marks,June12,
Jan14, 07 M Jun 19, 08 M Jan 20, 04 M Jan 19)
7. Explain sector slipping with an example (04Marks,Dec11)
8. Assume the disk queue, with request fun I/O to block on cylinders as 80, 30,15,100,125,90,45, and 10.
If the disk head is initially at cylinder 35, illustrate the disk movements using the SSTF scheduling
algorithm. Also calculate the total head movement (08Marks,Dec11)
9. Explain various questions that arise in revocation of access rights (08Marks,Dec11)
10. What are the components that the kernel module support under Linux? Explain in detail.
(10Marks Dec10, Jan 14)
11. Explain different system components in LINUX operating system.
(10Marks,Dec12, July 14, (06 marks, June 2018 08 M Jan 20, Jan 19, Jun 19)
12. Discuss inter process communication in LINUX operation system.
(10Marks,Dec12, (06 marks, June 2018)
13. Distinguish between fork ( ) and clone ( ) system calls. Also customize clone() system call to fork
functionality with suitable modification/settings (08Marks,Dec11)
14. What do you mean by cloning? How it is achieved by Linux OS? (06 Marks, Jan14)
15. Explain the LINUX device drive the block structure (12Marks,Dec11)
16. Explain process scheduling in a linux system . (06 Marks, June 2017, 05 M Jan 20)
17. Explain file systems implementation in linux . (08 Marks, June 2017)
18. Explain the way process is managed in LINUX platform (08M Jul 19)
19. Describe briefly on Linux Kernel Modules (08M Jan 19)
20. Explain the different IPC mechanisms available in Linux. (05M Jan 20)