Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
1.5k views
in Programming by (114k points)
closed by

Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock?

I. 2-phase locking

II. Time-stamp ordering


1. I only
2. II only
3. Both I and II
4. Neither I nor II

1 Answer

0 votes
by (113k points)
selected by
 
Best answer
Correct Answer - Option 2 : II only

  • 2 PL is based on locks and hence not free from deadlock but ensures conflict serializability.
  • Timestamp ordering protocol is based on timestamps ensures conflict serializability and is also free from deadlock.

Hence the correct answer is II only.

  •  Any schedule is possible under 2PL it must ensure conflict serializability.
  • Deadlock may occur under 2PL.
  • Cascading rollbacks may occur under 2PL.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...