OS Important Question-1
OS Important Question-1
OS Important Question-1
Important Question
CSE 2nd Year
Operating System
43. Explain the various CPU scheduling techniques with Gantt charts clearly as indicated by
(process name, arrival time, process time) for the following (A,0,4), (B,2,7), (C,3,2) and
(D,2,2) for FCFS and SRTF.
44. Define semaphore. Give a scheme for implementation of semaphore primitives.
45. Explain Dining Philosopher problem with its suitable solution.
46. Write short notes on following.
i. File system protection and security
ii. Linked File allocation methods
47. Explain in detail about the Dining Philosopher Problem.
48. Define Process. Explain various steps involved in change of a process state with neat
transition diagram.
49. Explain OS? Define the services provided by the operating system.
50. Describe the Producer-Consumer problem with its suitable solution.
51. Differentiate between user thread and kernel thread. What is thread cancellation?
52. What are the necessary conditions to hold a deadlock in a system?
53. Explain the difference between internal and external fragmentation
54. Explain Batch operating system with example. What is a Critical Section problem? Give
the conditions that a solution to the critical section problem must satisfy.
55. Illustrate the page-replacement algorithms.
i. FIFO
ii. Optimal Page replacement
use the reference string 7, 0,1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2,1, 2, 0, 1, 7, 0,1 for a memory
with three frames.
56. A hard disk having 2000 cylinders, numbered from 0 to 1999. the drive is currently serving
the request at cylinder 143,and the previous request was at cylinder 125.The status of the
queue is as follows
86, 1470, 913, 1774,948,1509,1022,1750,130
What is the total distance (in cylinders) that the disk arm moves to satisfy the entire
pending request for each of the following disk-scheduling algorithms?
i. SSTF
ii. FCFS
57. Explain in detail about the Operating System services.
58. Explain in detail about the Threads and their management.
59. Explain the following terms in details.
i. Multiprocessor OS.
ii. Real time system.
iii. Time sharing system.
60. Explain about the concept of File concept. Define in detail about the File organization and
access mechanism.
61. Write and explain Banker’s algorithm for avoidance of deadlock.
62. Given memory partition of 100 K, 500 K, 200 K, 300 K, and 600 K (in order) how would
each of the first-fit, best-fit and worst-fit algorithms place processes of 212 K, 417 K, 112
K, and 426 K (in order)? Which algorithm makes the most efficient use of memory?
63. Define virtual memory concepts and also discuss replacement algorithms in brief.
64. Differentiate between Deadlock and Starvation in detail
65. For the following processes draw a Gantt chart to illustrate the execution using.
i. Pre-emptive priority scheduling.
ii. Non Pre-emptive priority scheduling.
Also calculate average waiting time and average turnaround time.
(Assumption: A larger priority number had higher priority)
Process Arrival Time Burst Time Priority
0 5 4
A
2 4 2
B
2 2 6
C
4 4 3
D
66. Consider the given snapshot of a system with five processes (P0, P1, P2, P3, P4) and three
resources (A, B, C).
Allocation Max Available
A B C A B C A B C
Process/ Resource
1 1 2 4 3 3 2 1 0
P0
2 1 2 3 2 2
P1
4 0 1 9 0 2
P2
0 2 0 7 5 3
P3
1 1 2 11 2 3
P4
Use the reference string 7, 0,1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2,1, 2, 0, 1, 7, 0,1 for a memory with
three frames.
82. What is an Operating system? Describe the Operating-System Functions
83. Write about monolithic kernel, layered, and microkernel structures of
operating systems.