-
145.
-
146.
last reply by CpjJwWHV • 14 years ago • asked in Computer Science And Engineering, 2009
View Comments [1 Reply]
-
147.
-
148.
Consider a system with 4 types of resources R1 (3 units), R2 (2 units), R3 (3 units), R4 (2units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it can’t be completely satisfied. Three processes P1, P2 and P3 request the resources as follows if executed independently
Process P1: Process P2: Process P3: t = 0: requests 2 units of R2
t = 1: requests 1 units of R3
t = 3: requests 2 units of R1
t = 5: releases 1 unit of R2 and 1 unit of R1
t = 7: releases 1 unit of R3
t = 8: requests 2 unit of R4
t = 10: Finishest = 0: requests 2 units of R3
t = 2: requests 1 unit of R4
t = 4: requests 1 unit of R1
t = 6: releases 1 unit of R3
t = 8: Finishest = 0: requests 1 unit of R4
t = 2: requests 2 units of R1
t = 5: releases 2 units of R1
t = 7: requests 1 unit of R2
t = 8: requests 1 unit of R3
t = 9: Finishes
(A) All processes will finish without any deadlock
(B) Only P1 and P2 will be in deadlock
(C) Only P1 and P3 will be in deadlock
(D) All three processes will be in deadlock
asked in Computer Science And Engineering, 2009
View Comments [0 Reply]
-
149.
-
150.
Consider a 4 stage pipeline processor .The number of cycle needed by the four instructions I1,I2,I3,I4 in stages S1, S2, S3, S4 is shown below:
S1 S2 S3 S4 I1 2 1 1 1 I2 1 3 2 2 I3 2 1 1 3 I4 1 2 2 2
(A) 16
(B) 23
(C) 28
(D) 30
asked in Computer Science And Engineering, 2009
View Comments [0 Reply]