Question: A database has five tables. A, B, C, D and E. Each of these tables have five attributes/columns. A1, A2 A5. B1, B2, B3 and

A database has five tables. A, B, C, D and E. Each of these tables have five attributes/columns. A1, A2 A5. B1, B2, B3 and so on. There are five circumstances listed below. Based on each circumstance determine the best locking method solution and discuss why is it a good solution?

1. Five transactions T1, T2, T3, T4 and T5 access only one table at a time. No two transactions try to access the same table at the same time.

2. Five transactions T1, T2, T3, T4 and T5 need to access multiple tables at any given time and try to manipulate the same data.

3. Five transactions T1, T2, T3, T4 and T5 need to access multiple tables at any given time but do not manipulate the same data.

4. T1 had started 2 minutes before T2. T1 is currently manipulating data in tables A and B. T2 is manipulating data in tables C, D and E. T2 then tries to access data in table B but it cannot because T1 has a lock on it. How will this situation be resolved if wound/wait concurrency control scheme is being used?

5. T1 had started 2 minutes before T2. T1 is currently manipulating data in tables A and B. T2 is manipulating data in tables C, D and E. T1 then tries to access data in table E but it cannot because T2 has a lock on it. How will this situation be resolved if wait/die concurrency control scheme is being used?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!