Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3.1. Are there any problems that may occur on TCustomer1 and Tcustomer2 and explain your answer? (1 mark) 3.2. Are there any problems that may
3.1. Are there any problems that may occur on TCustomer1 and Tcustomer2 and explain your answer? (1 mark)
3.2. Are there any problems that may occur on TCustomer3 and explain your answer? (1 mark)
3.3. Are there any problems that may occur on TCustomer4 and explain your answer (1 mark)
Suppose that a Hotel has a room booking system that allows a number of customers to do the following concurrently: (3 marks): Make a new booking; Modify a current booking; Cancel a booking. Assume at the beginning, before any transactions, rooml is free and Customer3 has booked room2. Consider the following four transactions, TCustomerl, TCustomer2, TCustomer3, TCustomer4, which are concurrently running without any form of concurrency control. Each transaction is processed from left to right. TCustomer1: Read(room1); Write1(room1); Commit TCustomer2: Read(room1); Write(room1); Commit TCustomer3: Read(room2); Write(room2); Abort TCustomer4: Read(room2); Read(room2); Write(room2); CommitStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started