A3 Statement
A3 Statement
Answer all questions in your own handwriting. Submit both softcopy and hardcopy.
Question No 1. Marks: 10
CLO: <2>; Bloom Taxonomy Level: < Analyzing >
We studied Readers/Writers problem in chapter 7. One basic problem with the
solution provided was that it was biased in favour of readers, i.e once a reader
enters the system it allows other readers to join regardless of if a writer has been
waiting indefinitely. In other words, it is violating the Bounded Waiting
condition. Modify the algorithm such that this bias is removed.
Question No 2. Marks: 15
CLO: <2>; Bloom Taxonomy Level: < Analyzing >
The following processes are being scheduled using a preemptive, priority-based,
round-robin scheduling algorithm.
Question No 3. Marks: 15
CLO: <2>; Bloom Taxonomy Level: < Analyzing >
Explain the how the following scheduling algorithms discriminate either in
favor of or against short processes:
a. FCFS
b. RR
c. Multilevel feedback queues
Question No 4. Marks: 5
CLO: <2>; Bloom Taxonomy Level: < Analyzing >
Show that, if the wait() and signal() semaphore operations are not executed
atomically, then mutual exclusion may be violated.