Consider optimistic concurrency control as applied to the transactions T and U. Suppose that transactions T and U are active at the same time as one another. Describe the outcome in each of the following cases:
i) T's request to commit comes first and backward validation is used;
ii) U's request to commit comes first and backward validation is used;
iii) T's request to commit comes first and forward validation is used;
iv) U's request to commit comes first and forward validation is used.
In each case describe the sequence in which the operations of T and U are performed, remembering that writes are not carried out until after validation
i) T's read(i) is compared with writes of overlapping committed transactions: OK (U has not yet committed).
U - no read operations: OK.
ii) U - no read operations: OK.
T's read(i) is compared with writes of overlapping committed transactions (U’s write(i)): FAILS.
iii)T's write(j) is compared with reads of overlapping active transactions (U): OK.
U's write(i) is compared with reads of overlapping active transactions (none): OK (T is no longer active).
iv)U's write(i) is compared with reads of overlapping active transactions (T’s read(i)): FAILS.
T's write(j) is compared with reads of overlapping active transactions (none): OK.
You might also like to view...
You can hide information entered into a TextBox by setting that TextBox’s property to a character—that character will be displayed for every character entered by the user.
a) PrivateChar b) Mask c) MaskingChar d) PasswordChar
Word uses a ________ to translate text
A) machine translation service B) document C) dictionary D) thesaurus
RUBY_PLATFORM contains a string that identifies the manufacturer of the operating system on which a script is executing.
Answer the following statement true (T) or false (F)
For the
A. selected B. name C. label D. value