This chapter describes how to control concurrent execution in a database, in order to


Answer:In the concurrency control scheme of Section 16.3 choosing Start



Download 0.84 Mb.
View original pdf
Page10/14
Date28.01.2021
Size0.84 Mb.
#55710
1   ...   6   7   8   9   10   11   12   13   14
4480
4480
Answer:
In the concurrency control scheme of Section 16.3 choosing Start(T
i
)
as the timestamp of T
i
gives a subset of the schedules allowed by choosing
Validation
(T
i
) as the timestamp. Using Start(T
i
) means that whoever started first must finish first. Clearly transactions could enter the validation phase in the same order in which they began executing, but this is overly restrictive. Since choosing Validation(T
i
) causes fewer nonconflicting transactions to restart, it gives the better response times.
16.20
Show that there are schedules that are possible under the two-phase locking protocol, but are not possible under the timestamp protocol, and vice versa.
Answer:
A schedule which is allowed in the two-phase locking protocol but not in the timestamp protocol is:
step
T
0
T
1
Precedence remarks
1

Download 0.84 Mb.

Share with your friends:
1   ...   6   7   8   9   10   11   12   13   14




The database is protected by copyright ©ininet.org 2024
send message

    Main page