Give examples of schedules that would be accepted at

a. SNAPSHOT isolation but not REPEATABLE READ.
b. SERIALIZABLE but not SNAPSHOT isolation. (Hint: T2 performs a write after T1 has committed.)


a. r1(x) r1(y) w1(x) r2(y) r2(x) w1(y) commit2 commit1
A deadlock would occur at REPEATABLE READ.
b. r1(x) r1(y) r2(y) w1(x) commit1 r2(x) w2(x) commit2
This schedule is serializable, but would not be allowed in SNAPSHOT isolation, because both concurrent transactions updated x.

Computer Science & Information Technology

You might also like to view...

Create a World object and a Turtle object and use the Turtle object to draw a °ower.

What will be an ideal response?

Computer Science & Information Technology

Which of the following statements about threads is false?

a) Threads possess a subset of the resources contained in a process. b) Threads can be dispatched to a processor. c) Threads cannot execute instructions independent of other processes. d) A process’s threads can cooperate to attain a common goal efficiently.

Computer Science & Information Technology

The new blank Word document is based on the ________ theme

A) Standard B) Office C) Letter D) Memo

Computer Science & Information Technology

You should preview a mail merge to ensure that all the information is displayed properly in the final document.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology