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
What 2 forces move the secondary piston ahead?
jekas [21]

Answer:

The primary piston activates one of the two subsystems. The hydraulic pressure created, and the force of the primary piston spring, moves the secondary piston forward.

5 0
3 years ago
Two thousand pieces will flow through from the first machine A to the final machine F based on the given sequence of operations.
Vlad1618 [11]

The total number of trips that the vehicle has to make based on the given sequence of operation is 120 trips.

<em>"Your</em><em> </em><em>question is not complete, it seems to be missing the following information;"</em>

The sequence of operation is A - E - D - C - B - A - F

The given parameters;

  • <em>number of pieces that will flow from the first machine A to machine F, = 2,000 pieces</em>
  • <em>initial unit load specified in the first machine, L₁ = 50</em>
  • <em>final unit load, L₂ = 100 </em>
  • <em>the capacity of the vehicle = 1 unit load</em>

<em />

The given sequence of operation of the vehicle;

A - E - D - C - B - A - F

<em>the vehicle makes </em><em>6 trips</em><em> for </em><em>100</em><em> unit </em><em>loads</em>

The total number of trips that the vehicle has to make, in order to transport the 2000 pieces of the load given, is calculated as follows.

100 unit loads ----------------- 6 trips

2000 unit loads --------------- ?

= \frac{2000}{100} \times 6\\\\= 120 \ trips

Thus, the total number of trips that the vehicle has to make based on the given sequence of operation is 120 trips.

Learn more here:brainly.com/question/21468592

6 0
2 years ago
1. A thin plate of a ceramic material with E = 225 GPa is loaded in tension, developing a stress of 450 MPa. Is the specimen lik
mina [271]

Answer:

fracture will occur as the value is less than E/10 (= 22.5)

Explanation:

If the maximum strength at tip Is greater than theoretical fracture strength value then fracture will occur and if the maximum strength is lower than theoretical fracture strength then no fracture will occur.

\sigma_m = 2\sigma_o [\frac{a}{\rho_t}]^{1/2}

=  2\times 750 (\frac{\frac{0.2mm}{2}}{0.001 mm}})^{1/2}

                 = 15 GPa

fracture will occur as the value is less than E/10 = 22.5

7 0
3 years ago
Which answer best describes the relationship between the left-hand and right-hand panels in both File Explorer and Finder?
Art [367]

Answer: I think The left-hand panel shows like a high level list of folders. And Right-hand panel shows the contents of selected folder.

4 0
2 years ago
PLEASE HURRY TIMED TEST
ladessa [460]

Answer:

1

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • An array of electronic chips is mounted within a sealedrectangular enclosure, and colling is implemented by attaching analuminum
    5·1 answer
  • "Write a statement that outputs variable numItems. End with a newline. Program will be tested with different input values."
    15·1 answer
  • Technician A says that 18 gauge AWG wire can carry more current flow that 12 gauge AWG wire. Technician B says that metric wire
    9·1 answer
  • A local surf report provides the height of the wave from the trough to the crest of the wave. How does this relate to the wave’s
    11·1 answer
  • The thermal energy is carried by electromagnetic waves
    12·1 answer
  • The primary energy source for the controller in a typical control system is either brainlythe primary energy source for the cont
    10·1 answer
  • What is a beam on a bridge? what does it do?
    6·1 answer
  • For some transformation having kinetics that obey the Avrami equation, the parameter n is known to have a value of 2. If, after
    14·1 answer
  • A 7-hp (shaft) pump is used to raise water to an elevation of 15 m. If the mechanical efficiency of the pump is 82 percent, dete
    13·1 answer
  • A +7.5% grade meets a horizontal grade on a section of a rural mountainous highway. If the length of the crest vertical curve fo
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!