1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kryger [21]
3 years ago
11

2) Consider schedules S3, S4, and S5 below. Determine whether each schedule is strict, cascadeless, recoverable, or non-recovera

ble. You need to explain your reason.
S3: r1(x), r2(z), r1(z), r3(x), r3(y), w1(x), c1, w3(y), c3, r2(y), w2(z),w2(y),c2


S4: r1(x), r2(z), r1(z), r3(x), r3(y),w1(x),w3(y), r2(y),w2(z),w2(y), c1,c2, c3


S5: r1(x), r2(z), r3(x), r1(z), r2(y), r3(y), w1(x), c1, w2(z), w3(y), w2(y), c3, c2
Engineering
1 answer:
gulaghasi [49]3 years ago
7 0

Answer:

Explanation:

Consider schedules S3, S4, and S5 below. Determine whether each schedule is strict, cascadeless, recoverable, or non-recoverable. You need to explain your reason.

S3: r1(x), r2(z), r1(z), r3(x), r3(y), w1(x), c1, w3(y), c3, r2(y), w2(z),w2(y),c2

S4: r1(x), r2(z), r1(z), r3(x), r3(y),w1(x),w3(y), r2(y),w2(z),w2(y), c1,c2, c3

S5: r1(x), r2(z), r3(x), r1(z), r2(y), r3(y), w1(x), c1, w2(z), w3(y), w2(y), c3, c2

Strict schedule:

A schedule is strict if it satisfies the following conditions:

Tj reads a data item X after Ti has written to X and Ti is terminated means aborted or committed.

Tj writes a data item X after Ti has written to X and Ti is terminated means aborted or committed.

S3 is not strict because In a strict schedule T3 must read X after C1 but here T3 reads X (r3(X)) before Then T1 has written to X (w1(X)) and T3 commits after T1.

S4 is not strict because In a strict schedule T3 must read X after C1, but here T3 reads X (r3(X)) before T1 has written to X (w1(X)) and T3 commits after T1.

S5 is not strict because T3 reads X (r3(X)) before T1 has written to X (w1(X))

but T3 commits after T1. In a strict schedule T3 must read X after C1.

Cascadeless schedule:

Cascadeless schedule follows the below condition:

Tj reads X only? after Ti has written to X and terminated means aborted or committed.

S3 is not cascadeless schedule because T3 reads X (r3(X)) before T1 commits.

S4 is not cascadeless schedule because T3 reads X (r3(X)) before T1 commits.

S5 is not cascadeless schedule because T3 reads X (r3(X)) before T1 commits or T2 reads Y (r2(Y)) before T3 commits.

But while come to the definition of cascadeless schedules S3, S4, and S4 are not cascadeless, and T3 is not affected if T1 is rolled back in any of the schedules, that is,

T3 does not have to roll back if T1 is rolled back. The problem occurs because these

schedules are not serializable.

Recoverable schedule:

Schedule that follows the below condition:

-----Tj commits after Ti if Tj has?read any data item written by Ti.

Ci > Cj means that Ci happens before Cj. Ai denotes abort Ti. To test if a schedule is

recoverable one has to include abort operations. Thus in testing the recoverability abort

operations will have to used in place of commit one at a time. Also the strictest condition is

------where a transaction neither reads nor writes to a data item, which was written to by a transaction that has not committed yet.

If A1?>C3>C2, then schedule S3 is recoverable because rolling back of T1 does not affect T2 and

T3. If C1>A3>C2. schedule S3 is not recoverable because T2 read the value of Y (r2(Y)) after T3 wrote X (w3(Y)) and T2 committed but T3 rolled back. Thus, T2 used non- existent value of Y. If C1>C3>A3, then S3 is recoverable because roll back of T2 does not affect T1 and T3.

Strictest condition of schedule S3 is C3>C2.

If A1?>C2>C3, then schedule S4 is recoverable because roll back of T1 does not affect T2 and T3. If C1>A2>C3, then schedule S4 is recoverable because the roll back of T2 will restore the value of Y that was read and written to by T3 (w3(Y)). It will not affect T1. If C1>C2>A3, then schedule S4 is not recoverable because T3 will restore the value of Y which was not read by T2.

You might be interested in
A pump delivers water at 20°C between a reservoir and a water tank 24 m higher. The suction side consists of a strainer (ks = 2.
aleksandrvk [35]

Answer:

-10.83m

Explanation:

Please see the attachment

8 0
4 years ago
The anchor shown is used to tie tower guy cables to the ground and is supported by a distributed force from the soil, which can
ahrayia [7]

Answer:

See attachment for complete answer step by step solving

Explanation:

Given that:

The anchor shown is used to tie tower guy cables to the ground and is supported by a distributed force from the soil, which can be approximated as shown. The anchor also is subjected to the loads shown, where P1 = 5 kNand P2 = 3 kN . The anchor is made from aluminum with E = 69 GPa . It is a cylindrical rod with diameter d1 = 4 cm with three segments of length L = 2 m . One end of the rod is linearly tapered to a diameter of d2 = 2 cm.

a. Calculate the intensity of the reaction load, Po

b. Use the reaction found in Part A, po = 13 kN/m , and calculate the total change in length for the anchor.

5 0
3 years ago
5. Usually, loads of more than
Reika [66]
50 is the answer!! aka B
7 0
3 years ago
An environmental engineer is considering three methods for disposing of a nonhazardous chemical sludge: land application, fluidi
padilas [110]

Answer:

Explanation:

The annual worth of land application = $ 110,000 ( A/P , 10% , 5 years ) + $ 95,000 - $ 15,000 (A/F , 10% , 5 years )

The annual worth of land application = $ 110,000 X 0.263797 + $ 95,000 - $ 15,000 X 0.163797

The annual worth of land application = $ 29,017.54 + $ 95,000 - $ 2,456.95

The annual worth of land application = $ 121,560.59

The annual worth of land Incineration = $ 800,000 ( A/P , 10% , 6 years ) + $ 60,000 - $ 250,000 X (A/F , 10% , 6 years )

The annual worth of land Incineration = $ 800,000 X 0.229607 + $ 60,000 - $ 250,000 X 0.129607

The annual worth of land Incineration = $ 211,283.85

The annual worth of contract = $ 190,000

The annual worth of contract = $ 190,000

The land application has the least cost , hence it is preferred .

5 0
3 years ago
How to create a machine that can create anything without any limitations
n200080 [17]

Answer:

Wayback machine

Explanation:

Wayback Machine

calls a "three dimensional index". Kahle and Gilliat created the machine hoping to archive the entire Internet and provide "universal access to all knowledge

7 0
3 years ago
Other questions:
  • What is the differences between stack and queue?
    11·1 answer
  • After being purged with nitrogen, a low-pressure tank used to store flammable liquids is at a total pressure of 0.03 psig. (a) I
    13·1 answer
  • Given the scope of the problems and cheating exposed in the VW emissions cheating scandal, there's reason to believe the scandal
    8·1 answer
  • What information on a piping arrangement drawing gives the vertical placement of an item?
    10·1 answer
  • (a) Consider a germanium semiconductor at T 300 K. Calculate the thermal equilibrium electron and hole concentrations for (i) Nd
    7·1 answer
  • A gas at 1650C and 0.96 atm enters a plug flow reactor that converts 91% of the material. What is the amount of gas (in units of
    5·1 answer
  • Ashworth Lesson 2: Careers for mechanics and technicians exam
    14·1 answer
  • Who wants to play fortnite my name (JayIsABot13)
    15·2 answers
  • Why do need engineer and architect​
    7·1 answer
  • The only difference between all GMA welding machines and some FCA welding machines is that all GMA welding machines must have a
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!