Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

12/11/22, 2:16 PM Deadlock Question: Attempt review

Dashboard / My courses / COSC3360F2022-01 / EXAM 2 / Deadlock Question

Started on Wednesday, 26 October 2022, 2:43 PM


State Finished
Completed on Wednesday, 26 October 2022, 3:05 PM
Time taken 22 mins 38 secs
Grade 15.00 out of 15.00 (100%)

Information

Given the matrices C and A, and the vector R, calculate the V vector, and run the
Banker's algorithm to determine: (a) the final value of the V vector, and (b) if the
current state is a safe state. 

1 1 1 1
⎡ ⎤

⎢2 3 3 2 ⎥
C = ⎢ ⎥
⎢3 3 4 1 ⎥
⎣ ⎦
2 1 2 2

1 0 1 0
⎡ ⎤

⎢1 1 0 1 ⎥
A = ⎢ ⎥
⎢0 3 1 1 ⎥
⎣ ⎦
1 0 2 2

R = [3 6 5 7 ]

All questions are all-or-nothing.

https://moodle2.cs.uh.edu/moodle/mod/quiz/review.php?attempt=21198&cmid=1002 1/3
12/11/22, 2:16 PM Deadlock Question: Attempt review

Question 1

Complete

Mark 5.00 out of 5.00

V = [ 0   2   1  3 ]

8 4 7 6 5 9

The correct answer is:

V = [ [0]   [2]   [1]  [3] ]

Question 2
Complete

Mark 5.00 out of 5.00

V vector after running the Banker's Algorithm


V=[ 3   6   5 7 ]

0 1 9 2 4 8

The correct answer is:

V vector after running the Banker's Algorithm


V = [ [3]   [6]   [5] [7] ]

Question 3
Complete

Mark 5.00 out of 5.00

Is the current state a safe state?

Select one:
True

False

The correct answer is 'True'.

https://moodle2.cs.uh.edu/moodle/mod/quiz/review.php?attempt=21198&cmid=1002 2/3
12/11/22, 2:16 PM Deadlock Question: Attempt review

Question 4

Complete

Not graded

Provide a file (JPEG, PDF, etc.) showing your work (step by step) while executing the Banker's algorithm.

turned in paper

◄ Theory Part - Exam 2

Jump to...

Programming Question 1 ►

https://moodle2.cs.uh.edu/moodle/mod/quiz/review.php?attempt=21198&cmid=1002 3/3

You might also like