City Guilds Model Questions Vol1 2020 Information Technology Question 26

Practice objective / multiple choice question 26 from the 2020 City Guilds Model Questions Vol1 Information Technology examination.

City Guilds Model Questions Vol1 2020 Information Technology Objective / Multiple Choice Medium Difficulty
Question 26 CITY_GUILDS_MODEL_QUESTIONS_VOL1 • 2020 • INFORMATION_TECHNOLOGY • objective

In a system there are four processes \(P_0,P_1,P_2,P_3\) and three resource types \(A,B,C\). The Allocation matrix, Max matrix and Available vector are given below: Allocation: \[\begin{array}{c|ccc} & A & B & C\\\hline P_0 & 0 & 1 & 0\\ P_1 & 2 & 0 & 0\\ P_2 & 3 & 0 & 2\\ P_3 & 2 & 1 & 1\\ \end{array}\] Max: \[\begin{array}{c|ccc} & A & B & C\\\hline P_0 & 7 & 5 & 3\\ P_1 & 3 & 2 & 2\\ P_2 & 9 & 0 & 2\\ P_3 & 2 & 2 & 2\\ \end{array}\] Available vector: \((3,\,3,\,2)\). Using the Banker's safety algorithm, determine whether the current state is safe. If it is safe, give one possible safe sequence of process execution.

Answer Options

A. Safe; one possible safe sequence is P2, P0, P3, P1
Correct Answer B. Safe; one possible safe sequence is P1, P3, P0, P2
C. Unsafe; the system is in an unsafe state
D. Safe; one possible safe sequence is P0, P2, P1, P3
Correct Answer
B
Correct Option:
Safe; one possible safe sequence is P1, P3, P0, P2

About This Question

This is City Guilds Model Questions Vol1 2020 Information Technology Question 26. It is one of the objective questions from the 2020 City Guilds Model Questions Vol1 Information Technology examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support