Computers and Technology

Exercise 18.2.1: Below are two transactions, described in terms of their effect on two database elements A and B, which we may assume are integers. Ti: READ(A, t); t:= t+ 2 ; WRITE(A ,t) ; READ(B, t); t:= t* 3 ; WRITE(B, t); T2: READ(B, s); s:=s*2; WRITE(B, s); READ(A, s); s:=s+3; WRITE(A. s); 896 CHAPTER 18. CONCURRENCY CONTROL We assume that, whatever consistency constraints there are on the database, these transactions preserve them in isolation. Note that A = B is not the consistency constraint. a) It turns out that both serial orders have the same effect on the database; that is, (Ti ,T2) and (T2,T i) are equivalent. Demonstrate this fact by showing the effect of the two transactions on an arbitrary initial database state. b) Give examples of a serializable schedule and a nonserializable schedule of the 12 actions above. c) How many serial schedules of the 12 actions are there?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, gabriieldelacruz16
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
image
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, keel5468
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
Do you know the correct answer?
Exercise 18.2.1: Below are two transactions, described in terms of their effect on two database elem...

Questions in other subjects: