Bsc CSIT Semester 4 – Operating System – Unit 2: Process Management (10 Hrs.)
Comprehensive questions and detailed answers for Unit 2: Process Management (10 Hrs.). Perfect for exam preparation and concept clarity.
Describe how multithreading improves performance over a single-threaded solution.
“Using Semaphore is very critical for programmer.”
Do you support this statement? If yes, prove the statement with some logical facts.
If not, present your view with logical facts against the statement.
How thread based execution minimizes the context switching problem of process based execution? Explain the different multithreading model.
For each of the following transitions between the processes states, indicate whether the transition is possible. If it
is possible, give an example of one thing that would cause it.
a) Running -> Ready
b) Running -> Blocked
c) Blocked -> Running
What is race condition? Calculate Average Waiting and Average Turnaround time of the given set of processes in table below using SJF and RR scheduling algorithm. [Note: Quantum time for RR = 3]
| Process id | Arrival Time | Execution Time |
|---|---|---|
| A | 0 | 8 |
| B | 2 | 14 |
| C | 9 | 19 |
| D | 19 | 7 |
| E | 25 | 15 |
How does process differ from program? Explain process state with the help of block diagram.
Explain how multithreading improve performance over a single threaded solution.
Describe how Peterson’s solution preserve mutual exclusion in process CR execution.
Defined interactive system goals? List various interactive scheduling algorithms. Consider following process data and compute average waiting time and average turnaround time for RR(quantum 10) and priority scheduling algorithms.
| PID | Burst Time | Arrival Time | Priority |
|---|---|---|---|
| A | 16 | 0 | 1 |
| B | 37 | 12 | 2 |
| C | 25 | 7 | 3 |
When threads are better than processes? Explain the concept of user level threads in detail.
What is problem associated with semaphores? Explain the concept of monitors in brief.
What kind of problem arises with sleep and wakeup mechanism of achieving mutual exclusion? Explain with suitable code snippet.
What is lock variable? Discuss its working and problems associated with it in detail.
Discuss the concept of SJF and SRTN scheduling algorithms with suitable example.
Why do we need to schedule process? Find the average waiting time and average turnaround time for the following set of processes using and shortest remaining time next.
| Process | CPU brust time | Arrival time |
|---|---|---|
| P1 | 20 | 0 |
| P2 | 25 | 15 |
| P3 | 10 | 30 |
| P4 | 15 | 45 |
What is system call ? Describe the transition between different states of process.
How lock variable is used in achieving mutual exclusion? Describe.
Explain the Sleeping Barber problem. Illustrate on how it can be solved.
Explain how semaphore solves the problem of critical section.
Calculate the average waiting time and turnaround time using priority algorithm (Priority 1 being the highest) for the given scenario:
| PID | Brust Time | Arrival Time | Priority |
|---|---|---|---|
| A | 3 | 0 | 3 |
| B | 2 | 2 | 3 |
| C | 4 | 3 | 2 |
| D | 2 | 3 | 1 |
Sample Questions
“Using Semaphore is very critical for programmer.” Do you support this statement? If yes, prove the statement with some logical facts. If not, present your view with logical facts against th
How thread based execution minimizes the context switching problem of process based execution? Explain the different multithreading model.
For each of the following transitions between the processes states, indicate whether the transition is possible. If it is possible, give an example of one thing that would cause it.\ a) Running -> Rea
What is race condition? Calculate Average Waiting and Average Turnaround time of the given set of processes in table below using SJF and RR scheduling algorithm. [Note: Quantum time for RR = 3] Proces
And more questions available on this page.