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

4/5/22, 4:40 PM Banker's Algorithm Question: Attempt review

Dashboard / My courses / COSC3360SP2022 / EXAM 2 / Banker's Algorithm Question

Started on Thursday, 31 March 2022, 4:15 PM


State Finished
Completed on Thursday, 31 March 2022, 4:53 PM
Time taken 38 mins 28 secs
Grade 5.00 out of 15.00 (33%)

Information

Given the matrices C and A, and the vector V, calculate the R 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. 

2 1 2
⎡ ⎤

⎢3 3 6⎥
C = ⎢ ⎥
⎢2 3 5⎥
⎣ ⎦
1 1 1

1 0 2
⎡ ⎤

⎢0 3 2⎥
A = ⎢ ⎥

⎢1 1 1⎥
⎣ ⎦
1 0 1

V = [0 1 0]

All questions are all-or-nothing.

https://moodle2.cs.uh.edu/moodle/mod/quiz/review.php?attempt=15761&cmid=796 1/3
4/5/22, 4:40 PM Banker's Algorithm Question: Attempt review

Question 1

Correct

Mark 5.00 out of 5.00

R=[ 3    5    6  ]

4 2 1 0

The correct answer is:

R = [ [3]   [5]   [6] ]

Question 2
Incorrect

Mark 0.00 out of 5.00

V vector after running the Banker's Algorithm


V=[ 3    5    6  ]

2 0 4 1

The correct answer is:

V vector after running the Banker's Algorithm


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

Question 3

Incorrect

Mark 0.00 out of 5.00

Is the current state a safe state?

Select one:
True 

False

The correct answer is 'False'.

https://moodle2.cs.uh.edu/moodle/mod/quiz/review.php?attempt=15761&cmid=796 2/3
4/5/22, 4:40 PM Banker's Algorithm Question: Attempt review

Question 4

Not answered

Not graded

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

◄ Theory Part - Exam 2

Jump to...

Programming Question 1 ►

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

You might also like