Академический Документы
Профессиональный Документы
Культура Документы
INSTRUCTIONS TO CANDIDATES
1. This question paper consists of two (2) parts : PART A (10 Questions)
PART B (3 Questions)
2. Answer ALL questions in the Answer Booklet. Start each answer on PART B on a new
page.
3. Do not bring any material into the examination room unless permission is given by the
invigilator.
4. Please check to make sure that this examination pack consists of:
QUESTION 1
QUESTION 2
QUESTION 3
QUESTION 4
The most critical part of the Operating System is a kernel. Briefly explain how to implement
the kernel.
(4 marks)
QUESTION 5
What would happen if a system allows many processes to be placed in main memory,
without dividing the memory into partitions?
(4 marks)
QUESTION 6
(4 marks)
QUESTION 7
How is the functionality provided by the file manager related to virtual memory?
(4 marks)
QUESTION 8
QUESTION 9
A memory manager for a variable-sized region strategy has a free list of blocks of size 2600,
1400, 1000, 2200, 1600 and 1050 bytes. A list of request for the free list arrived in order,
1603, 349, and 949. By using best fit approach, draw a memory diagram to show the
placement of the request.
(4 marks)
QUESTION 10
QUESTION 1
a) Briefly explain TWO (2) performance metrics for comparing scheduling strategies.
(4 marks)
c) What is the effect of increasing the time quantum to a very large number for Round
Robin scheduling?
(4 marks)
d) Assume that you have the following jobs to execute with one processor:
iii. What is the average waiting time for all the processes?
(3 marks)
QUESTION 2
d) Using reference stream, R in d), apply Least Frequently Used (LFU) algorithm and
compare the number of page fault.
(5 marks)
QUESTION 3
c) Two processes, p0 and p^ compete for two units of the single resource type, a0 and a^.
Assume a process may request only one unit of the resource at a time and cannot ask
for a cumulative total of more than two units, since there are only two units in the
system. smn refers to the state in which p0 is in sm and pi is in sn. State s0Q represents the
case in which the process neither holds nor requests any unit of the resource.
Possible state transition from s0o is by a request, r, on the resource. The requests are
designated by r0 and n. This request will cause the system to move to state s01,
representing the case in which the process still holds no resources but now needs one
unit. The transition to s02 is possible when acquires a unit of the resource, a-i. From s02,
two transitions are possible. Either the process may release the resource, thus changing
to Soo or the process may request a second unit of the resource, causing the new state to
be s03, where the process holds one unit of the resource and needs another. Removing
a resource from the process is designated by d 0 for r0 and d-t for r-[. Several states from
the "cross product" are not feasible such as s44, which is impossible. Therefore, several
states from the cross product have been eliminated from the diagram.
Based on the above description, identify safe, unsafe and deadlock states in the states
diagram in Figure 2.