COP4600 EXAM 2
Name:__________________________________
- Define semaphore and explain how semaphore is used in
mutual exclusion [15
points]
- what is a mutex? Show an
example where a mutex is useful [10
points]
- cite and explain in details the different techniques
available for scheduling in Batch systems [20
points]
- Define a real-time system [5
points ]
- explain how thread
scheduling works? [10
points]
- define dispatch latency [5
points ]
Suppose
we have four processes (P1,P2,P3 and P4) with burst
time respectively of 10,7,4 and 8.
P1 starts at 0
ms, P2 at 2.0 ms, P3 at 5.0 ms and P4 at 6 ms. Answer
the following questions
- draw a diagram showing the scheduling in SJT
non-preemptive [10 points]
- calculate the average time [5 points]
- Draw a diagram showing the scheduling in interactive
systems in Round
Robin bounded wait. The quantum is 5
[20 points]