CS FundamentalsVery hardGATE CS (PYQ pattern)
Basic timestamp ordering with TS(T1) < TS(T2) < TS(T3). A transaction aborts when it violates the rules, and once aborted its later operations are ignored (rolled-back effects are not undone in the timestamps). Schedule: R2(Y), W1(Y), W3(Y), W2(Y), W2(X), W2(Y), R1(Y), W3(Y), W2(X). By how many does the number of aborted transactions under basic TO exceed the number under the Thomas write rule (an obsolete write is skipped instead of aborting)?
- A. 1
- B. 0
- C. 2
- D. 3
Correct answer: A. 1
Basic TO aborts [1, 2]; with the Thomas write rule an outdated write (write timestamp newer than the writer's, no later reader) is simply ignored, so only [1] aborts. Difference 1.
More DBMS and SQL questions
- A system uses immediate database modification with a log. Log (oldest first): <T1 start>, <T1,A,10,20>, <T2 start>, <T2,B,5,6>, <T1…
- A 10,000-page file is sorted by external merge sort with 21 buffer pages: later passes merge 20 runs at a time, and every pass reads and…
- Block nested-loop join of R (800 pages) and S (300 pages) with 52 buffer pages (1 for the inner input, 1 for output, 50 for the outer…
- R(A, B) has 10,000 tuples with V(R, B) = 200; S(B, C) has 5,000 tuples with V(S, B) = 500 and V(S, C) = 100; T(C, D) has 2,000 tuples with…
- An extendible hash index uses the LOW-order bits of the hash value, with bucket capacity 2 and an initial directory of global depth 1 (two…
- A file of 100,000 records of 120 bytes is stored in 4096-byte blocks, each with an 8-byte header (records do not span blocks), sorted on…