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
Lance is the sitting judge in the local family court. What education might have been
jok3333 [9.3K]
Masters degree in law
5 0
3 years ago
typedef struct bitNode { int data; struct bitNode *left; struct bstNode *right; } bstNode; int solve(bstNode* root) { if (root =
Sergio039 [100]

Answer:

The ten numbers to be filled in the blanks are: 18, 7, 7, 11, 18, 36, 3, 8, 13, 50.

Explanation:

keeps on going to the left node until node->left == NULL;

now at Node 18;

left = right = 0; hence condition is not satisfied

18 is printed first.

the value 18 is returned .

Then we reach at 4;

from there we move to 7;

just like 18, similar things happen with 7 and 7 is printed, the value 7 is returned.

Now coming to Node 4,

left = 0, right = 7 ; hence the condition is satisfied & res = 7; 7 is printed.

For Node 16, left = 7 ; right = 11(but for this we visit 11 first and 11 is printed)

for 16; condition is satisfied; res = 7 + 11 = 18 ; 18 is printed

Now for 5; left = right = 18; the condition is satisfied; so res = 18 + 18 = 36; 36 is printed

Next we visit Node 3; 3 is printed & 3 is returned

Then Node 8 ; 8 is printed & 8 is returned

for Node 13; left = 3, right = 8 ; condition is not satisfied, 13 is printed.

For Node 50; left = 36 right = 13 ; condition is not satisfied hence 50 is printed.

So the order of printing is  18 7 7 11 18 36 3 8 13 50.

4 0
3 years ago
The A/C compressor will not engage when the A/C is turned on. The static refrigerant pressure is 75 psi and the outside temperat
VikaD [51]

In the case above,  poor connection at the pressure cycling switch  and also a faulty A/C clutch coil could be the cause.

<h3>What is likely the reason when an A/C compressor will not engage if A/C is turned on?</h3>

The cause that hinders the A/C Compressor from engaging are:

  • Due to low pressure lockout.
  • Due to a poor ground
  • Due to bad clutch coil.
  • Dur to an opening in the wire that links to the clutch coil.
  • Due to a blown fuse.

Note that the pressure switches is known to be one that control the on/off function of any kind of AC compressor and as such, if there is switch failure, it can hinder the AC compressor from functioning at all.

Therefore, technician A and B are correct.

Learn more about refrigerant pressure from

brainly.com/question/10054719

#SPJ1

3 0
2 years ago
Jack has been concerned about the rapidly changing green regulations in his state and his ability as a mechanical engineer to ke
uysha [10]

Answer:

Option A, B and D

Explanation:

Jack can easily convince boss if he focus around two major aspects of the company

a) Revenue enhancement - Jack must outline the benefits of his research that can be used to improvise customer offerings and  hence can be further used to devise more energy-efficient options to customer

b) Reduction in mistakes - Issues such as poor implementation can be avoided with better approach and understanding.

Hence, option A, B and D are correct

3 0
3 years ago
Calculate the equivalent capacitance of the three series capacitors in Figure 12-1
GrogVix [38]

The question is incomplete! Complete question along with answer and step by step explanation is provided below.

Question:

Calculate the equivalent capacitance of the three series capacitors in Figure 12-1

a) 0.01 μF

b) 0.58 μF

c) 0.060 μF

d) 0.8 μF

Answer:

The equivalent capacitance of the three series capacitors in Figure 12-1 is 0.060 μF

Therefore, the correct option is (c)

Explanation:

Please refer to the attached Figure 12-1 where three capacitors are connected in series.

We are asked to find out the equivalent capacitance of this circuit.

Recall that the equivalent capacitance in series is given by

$ \frac{1}{C_{eq}} =  \frac{1}{C_{1}} + \frac{1}{C_{2}} + \frac{1}{C_{3}} $

Where C₁, C₂, and C₃ are the individual capacitance connected in series.

C₁ = 0.1 μF

C₂ = 0.22 μF

C₃ = 0.47 μF

So the equivalent capacitance is

$ \frac{1}{C_{eq}} =  \frac{1}{0.1} + \frac{1}{0.22} + \frac{1}{0.47} $

$ \frac{1}{C_{eq}} =  \frac{8620}{517}  $

$ C_{eq} =  \frac{517}{8620}  $

$ C_{eq} =  0.0599  $

Rounding off yields

$ C_{eq} =  0.060 \: \mu F $

The equivalent capacitance of the three series capacitors in Figure 12-1 is 0.060 μF

Therefore, the correct option is (c)

5 0
3 years ago
Other questions:
  • A 6-pole, 50 Hz squirrel cage induction motor has rotor resistance and standstill reactance referred to stator of 0.2 ohm and 1
    7·1 answer
  • Dunno what to ask, okbye
    5·1 answer
  • All sized companies are required to have a written fire prevention plan true or false
    14·2 answers
  • Select the correct answer
    8·1 answer
  • Often an attacker crafts e-mail attacks containing malware designed to take advantage of the curiosity or even greed of the reci
    14·1 answer
  • Match the scenario to the problem-solving step it represents.
    7·1 answer
  • Waste that is generated by a business is called a _____________.
    14·2 answers
  • All these are returnless fuel systems EXCEPT ?
    8·1 answer
  • Which - type of service shop is least likely to provide service to all
    9·1 answer
  • Aqueous cleaners are ________ parts cleaning agents.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!