Thursday, June 7, 2007

Question 28

There exist processes A, B, C and D which occupy resources X, Y and Z and execute processing. As processing progresses, each process occupies resources in the sequence of values shown in the table below. When execution ends, the three resources are released all together. Which of the following processes has a possibility of creating a deadlock with process A?

Process name Sequence in which resources are occupied
Resource X Resource Y Resource Z
Process A 1 2 3
Process B 1 2 1
Process C 2 3 1
Process D 1 2 3

a) Processes B and C
b) Processes B, C, and D
c) Process B only
d) Process C only

answer

No comments: