December 1999
SW204 : SOFTWARE AND
FILE DESIGN

QUESTION 2

Total Marks: 15 Marks

Click here to access other questions

Click to access
SUGGESTED SOLUTIONS
for Question 2

(a)

(i)Give one example of the use of a shareable resource.[1 mark ]

(ii)Give one example of the use of an unshareable resource.[1 mark ]

[2]
(b)

Describe,using examples,three situations which may lead to deadlock.

 

[9]
(c)

Refer to the scenario given below,in which there are three processes,A,B and C, and three resources,R,S and T.

Processes
A
B
C
Request R
Request S
Request T
Request S
Request T
Request R


Illustrate,using a Resource Allocation Graph,how deadlock may be avoided.

[4]