QuestionBank_OperatingSystem
QuestionBank_OperatingSystem
INTORDUCTION TO OS
PROCESS MANAGEMENT
17) Define process and Explain process states in details with diagram
18) Explain process states and process control block in details
19) Explain the process state transition diagram used in multiprogramming environment.
Describe the fields in a process control block (PCB).What is switching overhead?
20) What is thread? Explain classical thread model
OR Explain threads in detail
21) Explain and differentiate between user level and kernel level thread.
22) List the main difference and similarities between threads and process.
23) What are various criteria for a good process scheduling algorithm? Explain any two
preemptive scheduling algorithms in brief.
24) Explain the following process scheduling algorithm
a) Priority scheduling
b) Shortest job first scheduling
25) Explain the effect of increasing the time quantum to an arbitrary large Number and
decreasing the time quantum to an arbitrary small number for round robin scheduling
algorithm with suitable example?
26) 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
c) Draw Gantt charts illustrating execution of these processes for SJF and round robin
(quantum=1)
d) Calculate waiting time for each process for each scheduling algorithm
e) Calculate average waiting time for each scheduling algorithm
27) Consider following processes with length of CPU brust time in millisecond
Process Brust Priority
time
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.
1) Draw Gant charts illustrating execution of these processes for SJF, non preemptive priority
(smaller priority number implies a higher priority) & round robin(quantum=1)
2) Calculate turnaround time for each process for scheduling algorithm in part (1)
3) Calculate waiting time for each scheduling algorithm in part (1)
28. Explain the following term related to IPC: a) Race condition b) critical region
29. What are critical sections? Why mutual exclusion required? Explain any 2 methods of
achieving mutual exclusion in detail.
30. Explain the terms related to IPC –a) Race condition b) critical section c)Mutual exclusion
d)Semaphores
31. Explain in detail the following solutions for achieving mutual exclusion a)look variable
b)TSL instruction
32. Explain Peterson’s solution for achieving mutual exclusion
33. Discuss in detail following solution for achieving mutual exclusion a) Disabling interrupts b)
Strict alteration
34. Explain semaphore in detail
35. What is semaphore? Discuss product-consumer problem with semaphore.
36. Write short note on: a) Dining philosopher problem b) System calls c) Monitors
d) Peterson’s solution for achieving mutual exclusion e) Semaphores
f) Readers & writers problem.
37. Explain the terms: a) time sharing b) mutual exclusion
38. What is monitor? Explain solution for producer-consumer problem using monitor. Explain
monitors in detail.
39. Write short on: a) message passing b) shell
40. How message passing is used in IPC.
41. What is message passing? Discuss procedure consumer problem with message passing.
42. Explain use of message passing & semaphore for inter process communication?
43. Explain dinning philosopher problem & its solution.
44. What is dinning philosopher problem? Explain its solution with monitor.
45. What is dinning philosopher problem? Explain its solution with semaphore.
46. Explain readers & writers problem? Give its solution with semaphore.
47. Write short notes on: a) Process states b) Critical section c) Race condition
d) Starvation e) PCB f) Two level scheduling g) Round robin scheduling
FILE MANAGEMENT
48. What are the objectives and minimal set of requirement for the file management system?
49. What criteria are important in choosing a file organization?
50. Explain briefly file system architecture & file management function.
51. List& briefly explain 5 file organization.
52. Compare file organization methods
53. Which are the typical information elements of a file directory?
54. Which are the typical operations performed on directory?
55. What are the typical access rights that may be granted or denied to a particular user for a
particular file?
56. What are methods of free space management of Disk?
57. Explain linked list allocation using index in details.
58. Explain file system consistency in detail.
59. Explain file system reliability & performance in detail.
60. What is directory? Explain directory operation in details.
61. Explain linked list allocation of file in detail.
62. Explain file system performance in detail.
63. Explain the following techniques to improve file system performance.
a. block read ahead and
b. Reducing disk arm motion
64. Explain file system implementation using linked list with index and i-node in detail?
65. Explain the following file allocation methods
a. Contiguous allocation b) i-node
66. What are points to be consider in file system design? Explain linked list allocation & index
allocation in detail.
67. Differentiate between windows and unix file system.
2 MARKS/SHORT ANSWER QUSTIONS
68. What is the difference between field and record?
69. What is the difference between file and database?
70. What is file management system?
71. What is relation between pathname & a working directory?
MEMORY MANAGEMENT
98. On a simple paging system with 2^24 bytes of physical memory, 256 pages of logical
address Space, and a, page size of 2^10 bytes, how many bits are in logical address?
99. A certain computer provides its user with a virtual memory space of 2^32 bytes. The
computer has 2^35 bytes of physical memory. The virtual memory is implemented by paging the
page size is 4096 bytes. A user process generates the virtual address 11123456. Explain how the
system establishes the corresponding physical location.
100. Calculate page faults for (LRU, FIFO, OPT) for following sequences where page frame is
three.
0,1,2,1,4,2,3,7,2,1,3,5,1,2,5.
DEVICE MANAGEMENT
101. Discuss briefly the following issues related to device independent i/o software.
a. Uniform interfacing for device drivers.
b. Buffering.
102. Discuss in details devices drivers.
103. 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
104. Discuss the following:
a. Magnetic disk
b. CDs
c. RAID
d. DVDs
e. Formatting Disk
105. Discuss the following related to disk space management
a. Block size
b. Keeping track of free blocks.
106. 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?
1] SSTS 2] SCAN 3] C-SCAN
107. What are the conditions for deadlock? Explain deadlock detection and recovery in detail.
108. Explain deadlock prevention in detail.
109. Write short notes on:
a. Deadlock modeling
b. Bankers algorithm.
110. Explain deadlock avoidance using banker’s algorithm in details.
111. What is deadlock? Explain deadlock detection with multiple resources of each type.
112. Explain bankers algorithm for multiple resources to avoid deadlock.
113. Explain various methods for recovery from deadlock.
114. Discuss deadlock detection with one resource of each type.
115. Write short notes on-
a. Bankers algorithm for single resources.
b. Ostrich algorithm.
116. Explain deadlock avoidance with suitable example using banker’s algorithm.
117. 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
P4 0 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?
118. What are deadlock? Explain its model with example. Explain any three methods of
dealing with deadlock. N/D 2008 8M.
119. 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.
1. P1 is holding one unit of R1 and is requesting for one unit of R2.
2. P2 is holding two units of R2 and is requesting for one unit each of R1 and
R3.
3. P3 is holding one unit of R1 and is requesting for one unit of R2.
4. 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. M/J 2012 8M.
120. Explain swap space management methods of disk in detail. N/D 2008 8M.
121. Consider system with total of 150 minutes of memory allocated to three processes as
shown. Apply banker’s algorithm to determine whether it would be safe to grant each of
following request. If yes-Indicate sequence of termination that could be possible. If no- Show
reduction of resulting allocation table.
1. A 4th process is arrived with maximum need of 60 and initial need
of 25 units.
2. A 4th process is arrived with maximum need of 60 and initial need
of 35 units.