a) Draw the resource allocation graph for the above described system.
[6]
b) What is the state of each process? indicate whether it is running or waiting.
[3]
c) Is the system in a deadlock state or not? If so, mention the processes involved and specifically
state what is causing the deadlock. If not, give execution sequences that eventually lead to all
processes being executed.
[2]
Question 10
Given the table below, answer the questions that follow.
Jobs
Job 1
Job 2
Job 3
Job 4
Required memory (KB)
950
330
600
940
Memory block
1
2
3
4
Size (KB)
650
400
1000
950
(Assume all jobs are in a waiting queue in the order given)
10.1 Illustrate with an aid of a diagram how the jobs will be assigned in the main memory using
fixed partitions method:
First-fit
(4]
10.2 Calculate the total internal fragmentation for each algorithm stated in 10.1.
[2]
Question 11
In demand paging, a page replacement policy is used to manage system resources. Given that main
memory has 3 page frames (0, P, S) available to programs and that a program consisting of 15 pages
is to be loaded in main memory. The request pages are provided below in order:
965 6875975 68 5 98
Suppose that all the page frames are initially empty.
Using the Most Recently Used (MRU) page removal algorithms, do a pages trace analysis clearly
indicating page faults.
Show how these pages will be allocated using the following page replacement policies. You are
required to do a page trace analysis and clearly indicating when an interrupt or page fault has
occurred.
5