City Guilds Model Questions Vol1 2017 Information Technology Question 24

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

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

A system has three processes \(P_{1}, P_{2}, P_{3}\) and two resource types \(A\) (5 instances) and \(B\) (3 instances). The current allocation and maximum demand matrices are:\n\nAllocation:\n\(P_{1}: (A=2, B=0)\)\n\(P_{2}: (A=1, B=1)\)\n\(P_{3}: (A=0, B=2)\)\n\nMaximum:\n\(P_{1}: (A=3, B=2)\)\n\(P_{2}: (A=2, B=2)\)\n\(P_{3}: (A=2, B=2)\)\n\nUsing the Banker's algorithm, determine whether the system is in a safe state. If it is safe, give one possible safe sequence of process execution.

Answer Options

Correct Answer A. Yes, safe; safe sequence: P3 -> P1 -> P2
B. Yes, safe; safe sequence: P2 -> P3 -> P1
C. Yes, safe; safe sequence: P1 -> P2 -> P3
D. No, unsafe; deadlock occurs.
Correct Answer
A
Correct Option:
Yes, safe; safe sequence: P3 -> P1 -> P2

About This Question

This is City Guilds Model Questions Vol1 2017 Information Technology Question 24. It is one of the objective questions from the 2017 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