Give schedules that demonstrate incorrect executions in each of the following situations. For each situation, give a one sentence explanation of why the execution is incorrect (for example, `The balance in the bank account is incorrect because ...?)
(a) Transactions are not isolated
(b) Transactions are not atomic
(a) Transactions are not isolated
Solution:
r1(bal = 10) r2(bal = 10) w1(bal = 110) w2(bal = 15) c1 c2
(b) Transactions are not atomic
Solution:
w1(x = 100) r2(x = 100) w2(y = 100) c2 a1
The second transaction was trying to copy the value of x to y, but it copied a value that
was later rolled back. Thus the rst transaction had an eect even though it did not
commit.
Computer Science & Information Technology
You might also like to view...
If you overlap two circles and then apply the Divide pathfinder, you'll end up with four objects.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
The Sasser virus/buffer overflow attack spreads by copying itself to shared drives and emailing itself out to everyone in your address book
Indicate whether the statement is true or false.
Computer Science & Information Technology
Each physical device in UNIX is identified by a minor device number, a major device number, and a contact address.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Flash files have a(n) ____ file extension.
A. .flash B. .fla C. .fl D. .txt
Computer Science & Information Technology