Question Bank - OS
Question Bank - OS
QUESTION BANK
UNIT 1
15. Define user mode and kernel mode. Why two modes are required?
16. Distinguish between the client-server and peer-to-peer models of distributed system
17. List any four process management system call.
18. What are the requirements of hard real time and soft real time system?
19. Explain the termParallel System
20. Describe the difference between symmetric and asymmetric multiprocessing?
Greater Noida Institute ofTechnology
7, (Approved by AICTE Affilated to AKTU, Lucknow)
Knowledge Park-II, Greater Noida-201306, Distt. G B Nagar
Tele.: Tele:(0120)2320210,11,12 Fax: (0120)232 6653
Website:https://www.gniotgroup.edu.in/
UNIT 2
1. Explain and differentiate between user level and kernel level thread.
2. Explain the following term related to IPC - Race condition
3. Explain Peterson’s solution for achieving mutual exclusion
4. What is semaphore?
5. Discuss product-consumer problem with semaphore.
6. Write short note on Dining philosopher problem
7. Write short on message passing
8. Write short notes on Starvation
9. Why mutual exclusion required? Explain any 2 methods of achieving mutual exclusion in detail.
10. Explain in detail the following solutions for achieving mutual exclusion TSL instruction
11. What are critical sections?
12. What are Monitors?
13. What is Principle of Concurrency?
14. Explain Sleeping Barbers Problem.
15. Explain Process Generation.
16. Explain the ways in which inter process communication can be achieved.
17. Define the actions taken by a kernel to context switch: a. Among threads b. Among processes
18. What are co-operating processes?
19. Write short on shell
20. Illustrate the use of fork and exec system calls
Greater Noida Institute ofTechnology
7, (Approved by AICTE Affilated to AKTU, Lucknow)
Knowledge Park-II, Greater Noida-201306, Distt. G B Nagar
Tele.: Tele:(0120)2320210,11,12 Fax: (0120)232 6653
Website:https://www.gniotgroup.edu.in/
UNIT 3
1. What are various criteria for a good process scheduling algorithm? Explain any two preemptive
scheduling algorithms in brief.
2. Explain the following process scheduling algorithm
a)Priority scheduling b) Shortest job first scheduling
3. 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
a) Draw Gantt charts illustrating execution of these processes for SJF and round robin (quantum=1)
b) Calculate waiting time for each process for each scheduling algorithm
c) Calculate average waiting time for each scheduling algorithm
4.
5. What are the conditions for deadlock? Explain deadlock detection and recovery in detail.
6. Explain deadlock prevention in detail.
7. Explain deadlock avoidance using banker’s algorithm in details
8. Consider the following snapshot
Allocated Max Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P40 0 1 4 0 6 5 6
Answer the following questions using banker’s algorithm: a) What are contents of matrix end?
b) Is the system in safe state? c) If request for process p1 arrives for (0,4,2,0) .Can the request be
granted immediately?
Greater Noida Institute ofTechnology
7, (Approved by AICTE Affilated to AKTU, Lucknow)
Knowledge Park-II, Greater Noida-201306, Distt. G B Nagar
Tele.: Tele:(0120)2320210,11,12 Fax: (0120)232 6653
Website:https://www.gniotgroup.edu.in/
9. 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.
Determine which if any of the processes are deadlock in this state.
10. Differentiate Pre-emptive and Non-preemptive scheduling giving the application of each of them.
11. What is the criterion used to select the time quantum in case of round-robin scheduling algorithm?
Explain it with a suitable example.
12. Explain FCFS scheduling algorithm. Find the average turnaround time and average waiting time for the
processes given in the table below.
P1 24
P2 3
P3 3
UNIT 4
UNIT 5
1. Discuss briefly the following issues related to device independent i/o software. a. Uniform interfacing
for device drivers. b. Buffering.
2. Discuss in details devices drivers.
3. Write short notes on: a. Devices independent I/O software b. Goals of I/O software c. Interrupt handler
d. I/O Devices. e. Device drivers f. Device controllers g. Disk space management h. Disk arm
scheduling algorithm
4. Discuss the following: a) Magnetic disk b) CDs c) RAID d) DVDs e) Formatting Disk
5. Discuss the following related to disk space management a) Block size b) Keeping track of free blocks
6. Suppose a disk drive has 400 cylinders , numbered 0 to 399.The driver is currently serving a request at
cylinder 143 and previous request was at cylinder 125 .The queue of pending request in FIFO order is:
86,147,312,91,177,48,309,222,175,130. Starting from the current head position what is the total
distance in cylinders that the disk to satisfy all the pending request for each of the following disk
scheduling algorithms? SSTS
7. Do Question 6 with SCAN
8. Do Question 6 with C-SCAN
9. What criteria are important in choosing a file organization?
10. Explain briefly file system architecture & file management function
11. Which are the typical information elements of a file directory?
12. Which are the typical operations performed on directory?
13. What are the typical access rights that may be granted or denied to a particular user for a particular file?
14. Explain the following file allocation methods a) Contiguous allocation b) i-node
15. Suppose the head of a moving- head disk with 200 tracks, numbered 0 to 199, is Currently serving a
request at track 143 and has just finished a request at track 125. If the queue of requests is kept in FIFO
order: 86, 147, 91, 177, 94, 150, 102, 175, 130. What is the total head movement to satisfy these
requests for the following Disk scheduling algorithms. (a)FCFS (b) Random (d) SCAN (e) SSTF (f) C-
SCAN
16. Explain Disk scheduling algorithm C-LOOK
17. Explain about single-level, two-level directory structure?
18. Explain about file system mounting, file sharing?
19. What is Access Control List.
20. Explain file system reliability & performance in detail.