Question

Consider the following actions taken by transaction T1 on database objects X and Y: R(X), W(X),...

Consider the following actions taken by transaction T1 on database objects X and Y:

R(X), W(X), R(Y), W(Y)

Explain how the use of Strict 2PL would prevent interference between the two transactions.

Homework Answers

Answer #1

Strict 2PL:-

Def:- The first phase of Strict-2PL is the same as the 2PL. After acquiring all the locks in the first phase, the transaction continues to execute normally. But in contrast to 2PL, Strict-2PL does not release a lock after using it. Strict-2PL holds all the locks until the commit point and releases all the locks at a time.

Ans:- Strict 2PL would require T2 to obtain an exclusive lock on Y before writing to it. This lock would have to be held until T2 committed or aborted; this would block T1 from reading Y until T2 was finished, but there would be no interference.

ex;

T1 T2

R(X) W(Y)

W(X)

R(Y)

W(Y)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Draw the Schedule in a horizontal timeline manner with the X and S locks before the...
Draw the Schedule in a horizontal timeline manner with the X and S locks before the W and R. Consider the following sequence of actions, listed in the order they are submitted to the DBMS. Assume Strict 2PL with deadlock detection. Draw a Wait For Graph (WFG) for the transactions and determine whether deadlock exists. w1(x) r2(x) w2 (y) w2(x) w3 (z) r3 (y) w3 (y) w1 (z) abort1 What happens to T2 and T3 when T1 aborts?
Consider the following subset: W =(x, y, z) ∈ R^3; z = 2x - y from...
Consider the following subset: W =(x, y, z) ∈ R^3; z = 2x - y from R^3. Of the following statements, only one is true. Which? (1) W is not a subspace of R^3 (2) W is a subspace of R^3 and {(1, 0, 2), (0, 1, −1)} is a base of W (3) W is a subspace of R^3 and {(1, 0, 2), (1, 1, −3)} is a base of W (4) W is a subspace of R^3 and...
Consider the set V = (x,y) x,y ∈ R with the following two operations: • Addition:...
Consider the set V = (x,y) x,y ∈ R with the following two operations: • Addition: (x1,y1)+(x2,y2)=(x1 +x2 +1, y1 +y2 +1) • Scalarmultiplication:a(x,y)=(ax+a−1, ay+a−1). Prove or disprove: With these operations, V is a vector space over R
Consider a worker with a utiltiy function: U=W-R2, where W is the wage, and R is...
Consider a worker with a utiltiy function: U=W-R2, where W is the wage, and R is the risk of fatality per 100,000 workers per year. a) On a graph, draw the two indifference curves that represent this worker's preference for wage versus risk at utility levels: U1=10 and U2=20. b) Which of the following two offers would this worker prefer: (W=$20, R=1) OR (W=$25, R=3)? c) Assume this worker is currently employed at a job with W=$30 and R=2. By...
Consider the following behavioral equations: (18 marks) C=c0 +c1YD T=t0 +t1 Y YD = Y –...
Consider the following behavioral equations: C=c0 +c1YD T=t0 +t1 Y YD = Y – T G and I are both constant. Assume that t1 is between 0 and 1. (1) Solve for equilibrium output and equilibrium taxes. (2) What is the multiplier? Does the economy respond more to changes in autonomous spending when t1 is 0 or when t1 is positive? Explain. (3) Why is the fiscal policy in this case called an automatic stabilizer? Now suppose that the government...
* Consider the transformations T1=‘reflection across the x-axis’ and T2=‘reflection across the line y = x’....
* Consider the transformations T1=‘reflection across the x-axis’ and T2=‘reflection across the line y = x’. (a) Find the matrices A1 and A2 corresponding to T1 and T2, respectively. (b) Show that (A1) 2 = I, and give a geometrical interpretation of this. (c) Use matrix multiplication to find the geometric effect of T1 followed by T2, showing all your reasoning. (d) The product T (θ)T (φ) of any two reflections T (θ) and T (φ) with angles θ and...
Consider the graph y = |x| in = R^ 2 . In which of the following...
Consider the graph y = |x| in = R^ 2 . In which of the following spaces (a) (R ^2 , d1), (b) (R 2 , d2), (c) (R ^2 , d∞) does it form a line? Why?
Consider two genes: R (round seeds) and r (wrinkled seeds) and Y (yellow seeds) and y...
Consider two genes: R (round seeds) and r (wrinkled seeds) and Y (yellow seeds) and y (green seeds). If two pea plants mated (RrYy and RrYy), what would be the probability of producing offspring with wrinkled seeds and green seeds? The following picture shows the possible gametes. Make sure and use the product rule.         1/16 1/2 3/4 1/8 What is the term that describes how most traits are a reflection of the activities of multiple genes? A) Polygenic B) Epistatic...
We consider the plane region R delimited by the curves y = cos (x) and y...
We consider the plane region R delimited by the curves y = cos (x) and y = (x − π) ^ 2 −2. (a) Determine the volume of the solid generated by the rotation of R revolves around the right y = −3. (b) Determine the volume of the solid generated by the rotation of R revolves around the right x = 0. For (a) and (b), observe the following procedure: - Draw a sketch (2D) of the R region...
Consider Gary's utility function: U(X,Y) = 5XY, where X and Y are two goods. Answer the...
Consider Gary's utility function: U(X,Y) = 5XY, where X and Y are two goods. Answer the following questions: [5 pts. each] a. If Gary consumed 10 units of X and received 250 units of utility, how many units of Y must have Gary consumed? b. Would a bundle of X = 15 and Y = 3 be preferred to the bundle found in a.? Briefly explain.