Madhuben & Bhanubhai Patel Institute of Technology AY:2020-21 Term: Even Semester: IV Operating System (3140702) Question Bank
Madhuben & Bhanubhai Patel Institute of Technology AY:2020-21 Term: Even Semester: IV Operating System (3140702) Question Bank
Madhuben & Bhanubhai Patel Institute of Technology AY:2020-21 Term: Even Semester: IV Operating System (3140702) Question Bank
7. Consider the following set of processes, with the length of the CPU-burst given in
milliseconds:
18. Consider the following set of processes with length of CPU burst time
given in milliseconds.
Process Burst Time Priority
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
Assume arrival order is: P1, P2, P3, P4, P5 all at time 0 and a smaller
priority number implies a higher priority. Draw the Gantt charts
illustrating the execution of these processes using preemptive priority
Scheduling.
19.
What is scheduler? Explain queuing diagram representation of process
scheduler with figure.
21. What are the various states a process can be in at a particular time? What factors can
lead to the transition of process states?
22. Justify that multithreading can take the best advantage of multiple processors.
Madhuben & Bhanubhai Patel Institute of Technology
(Gujarat Technological University)
AY:2020-21 ; Term: Even ; Semester : IV
Operating System (3140702)
Question Bank
23. Differentiate between preemptive and non-preemptive scheduling algorithm.
24. Explain the following scheduling algorithm with illustration or suitable example:
First Come First Serve, Shortest Job First, Shortest Remaining Time Job First,
Round Robin, Priority Scheduling, Multi Queue, Multi-Level Feedback Queue,
Lottery, Guaranteed.
25. Compare FCFS, SJF and Round Robin.
27. What requirements should be met by the solution to the problem of critical region?
28. What are monitor? How condition variables differ from semaphore?
29. Compare the semaphore solution to bounded buffer problem to the solution that uses
monitor.
30. What hardware solutions are possible for critical section problem?
36. What is priority inversion problem in inter process communication? How to solve it
with semaphore?
37. What is Process State? Explain different states of a process with various queues
generated at each stage.
38. Explain Client/Server & Virtual Machine Architecture of Operating System.
41. Consider the following set of processes with length of CPU burst time given
in milliseconds.
Process Burst Time Priority
P1 10 5
P2 1 1
P3 2 3
P4 1 4
P5 5 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
Madhuben & Bhanubhai Patel Institute of Technology
(Gujarat Technological University)
AY:2020-21 ; Term: Even ; Semester : IV
Operating System (3140702)
Question Bank
charts for preemptive and non-preemptive priority scheduling. Calculate
Average Turnaround Time and Average Waiting Time.
42. List out the names of layers in layered OS.
44. List out the four strategies which are used for dealing with deadlock.
48. List and explain the methods of Process Creation and Termination.
49. You are given two processes P1 and P2. It is required that these processes
perform their actions in a strict order as P1 first, P2 next and P1 first, P2 next and
so on. Write necessary program segments to show how such a strict
synchronization is achieved, using Semaphores.
50. Explain “Disabling Interrupts” and “Lock variables” methods to achieve
IPC.
51. Explain Sleep, Wakeup, Send and Receive System calls.
52. Consider following process, with the CPU burst time given in msec. Draw the
Gantt charts and calculate the average waiting time using (1) FCFS (2) SJF &
(3) Round robin algorithms. Take time quantum of 1 msec for RR. All processes
arrive at time zero.
57. What is Semaphore? Solve producer consumer problem with use of semaphore.
58.
Differentiate Multi-Programming, Multi-tasking
,Multiprocessing & Distributed Operating System.
59. Five batch jobs A to E arrive at same time. They have estimated running times
10,6,2,4 and 8 minutes. Their priorities are 3,5,2,1 and 4 respectively with 5
being highest priority. For each of the following algorithm determine mean
process turnaround time. Ignore process swapping overhead.
Round Robin, Priority Scheduling, FCFS, SJF.
60. What is priority inversion problem in interprocess communication? How to
solve it with semaphore?
61. Write different operating system services.
62.
Process Time of Priori Execution
1 0 20 10
2 2 10 1
Find 3 4 58 2 average
4 8 40 4 turnaround
time 5 12 30 3 and average
waiting time
for the following algorithm:
1)FCFS 2)SJF 3)SRTN 4)RR(q=2ms) 4)priority (highest number is having highest
priority)
63. Give the difference between hard real-time OS and soft real-time OS.
66. Explain Round Robin, Shortest Job First and Priority Scheduling
Algorithms with illustration.
67. What is monitor? Give the implementation of Bounded Buffer Producer-
Consumer Problem using monitor.
68. What is operating system? Give functions of Operating System.
71. What is Deadlock? List the conditions that lead to deadlock. How Deadlock
can be prevented?
72. Explain the use of Banker’s Algorithm for multiple resources for Deadlock
Avoidance with illustration.