Ch 45: Locking Mechanisms & Deadlocks

4 Questions4 MCQs0 Short Questions0 Long Questions
🎯 Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

📘 VU MID TERM EXAMLectures 1 to 22
⏱️ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

📝30 MCQs
⏱️60 Minutes
📗 VU FINAL TERM EXAMLectures 23 to 45
⏱️ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

📝45 MCQs
⏱️90 Minutes
Showing 1 – 4 of 4 Questions
Page 1 of 1
Q1
🧠 Long Problem📘 CS403📑 Lec 45🏷️ 45.4. Deadlock Detection and Wait-for GraphHard🔁⭐💡📄🎓VU🏛️VU
Write four steps to recover from a deadlock between the transactions.
Q2
🧠 Long Problem📘 CS403📑 Lec 45🏷️ 45.4. Deadlock Detection and Wait-for GraphHard🔁⭐💡🌟📄🎓VU🏛️VU
During concurrent database transaction management, write down the four fundamental steps required to perform deadlock resolution in a database management system.
Q3
📝 Short Q📘 CS403📑 Lec 45🏷️ 45.1. Lock Types and ModesEasy🔁⭐💡📄🎓VU🏛️VU
Name and describe the two primary locking modes (or lock models) standardly managed by the lock manager in multi-user concurrent database transactions.
💻 sql Snippet
-- Transaction requests Shared Lock (S):
SELECT * FROM Student WITH (HOLDLOCK) WHERE stId = 'S1020';

-- Transaction requests Exclusive Lock (X):
UPDATE Student SET cgpa = 3.4 WHERE stId = 'S1020';
Q4
🧠 Long Problem📘 CS403📑 Lec 45🏷️ 45.4. Deadlock Detection and Wait-for GraphHard🔁⭐💡🌟📄🎓VU🏛️VU
During concurrent database transaction management, deadlocks represent an execution halt state. Write down the four fundamental steps required to perform deadlock resolution in a database management system.
💻 text Snippet
-- Deadlock dependency representation in Wait-for Graph (WFG):
-- Cycle: Transaction_A ---> Transaction_B ---> Transaction_A (Deadlock)