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
Create a project named CarDealer that contains a Form for an automobile dealer. Include options for at least three car models. A
PIT_PIT [208]

Answer:

/****************** The code for a form application that uses radioButtons * *and displays new form based on the user selection *****************/

Using system;

Using system windows forms;

namespace CarDealer

{

Public partial class Form1 : Form

{

public Form1()

{

//default constructor to initialize components

InitializeComponent();

}

//when user clicks on the details button

private void detail_Click

(Object sender, EventArgs e)

{

if (model1,Checked)

{

Forms2 f = new Form2()

f.ShowDialog()

model1.Checked = false

}

if (model2.Checked)

{

Form3 f = new Form3();

f.ShowDialog();

model2.Checked = false;

}

if (model3.Checked)

{

Form4 f = new Form4();

f.ShowDialog();

model3.Checked = false;

}

}

}

}

Explanation:

Program plan

- Design form: Place label controls with text as select car model and one empty label control to display total price. Change front type and size from each other labels properties window.

- Add three radio buttons with text Renault Kwit, Tata Tiago, Mahindra KUV 100.

- Add button with text View Details.

- Add 3 new windows form from project menu for each car model.

- Change form name and respective car models.

- Place picturebox control to each form by using image property add .jpeg image and place label control containing price of each model to each form

- When user select car model and click on view details, new form containing car model details is displayed.

Form Design is attached below

7 0
3 years ago
Inspection with considering a variable uses gages to determine if the product is good or bad. True or False?
irina1246 [14]

Answer:A. 40% B.50% C. 60% Od 70%

Explanation:A. True B. False

4 0
3 years ago
Read 2 more answers
A heat pump designer claims to have an air-source heat pump whose coefficient of performance is 1.8 when heating a building whos
Anit [1.1K]

Answer:

The claim is valid.

Explanation:

Let assume that heat pump is reversible. The coefficient of performance for the heat pump is:

COP_{HP} = \frac{T_{H}}{T_{H}-T_{L}}

COP_{HP} = \frac{300\,K}{300\,K-260\,K}

COP_{HP} = 7.5

The claim is valid as real heat pumps have lower coefficients of performance.

3 0
3 years ago
The phrase "positive to positive, negative to ground" is correct when jump starting a car.
Artist 52 [7]

The correct answer is A; True.

Further Explanation:

This is a correct phrase that is important to learn when owning any type of vehicle. When a car battery is dead, it can usually be jump started by using another cars battery or a portable battery charger. It is extremely important to put the positive battery cable on the positive battery post. Then the negative cable will be placed on the negative car battery post and the negative ground wire can be anywhere on the car except on the battery.

The car needs to be connected properly for a few minutes before trying to start the car. This helps the car battery to get enough "juice" to start. If the battery cables are placed wrong this can cause sparks to come out of the cables/battery and cause bodily harm.

Learn more about car batteries at brainly.com/question/7734062

#LearnwithBrainly

7 0
4 years ago
Write a method printShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, prin
kirill [66]

Answer:

// The method is defined with a void return type

// It takes a parameter of integer called numCycles

// It is declared static so that it can be called from a static method

public static void printShampooInstructions(int numCycles){

// if numCycles is less than 1, it display "Too few"

   if (numCycles < 1){

       System.out.println("Too few.");

   }

// else if numCycles is less than 1, it display "Too many"

    else if (numCycles > 4){

       System.out.println("Too many.");

   }

// else it uses for loop to print the number of times to display

// Lather and rinse

  else {

       for(int i = 1; i <= numCycles; i++){

           System.out.println(i + ": Lather and rinse.");

       }

       System.out.println("Done");

       

   }

}

Explanation:

The code snippet is written in Java. The method is declared static so that it can be called from another static method. It has a return type of void. It takes an integer as parameter.

It display "Too few" if the passed integer is less than 1. Or it display "Too much" if the passed integer is more than 4. Else it uses for loop to display "Lather and rinse" based on the passed integer.

8 0
3 years ago
Other questions:
  • Main technologies used in atms vending machines game consoles and microwave ovens
    6·1 answer
  • Estimate the daily carbon utilization to remove chlorobenzene from 1.0 MGD of ground water saturated with chlorobenzene. Assume
    12·1 answer
  • Aerospace engineers who work for certain government agencies are often required to have security clearance. Explain two reasons
    9·1 answer
  • For a copper-silver alloy of composition 25 wt% Ag-75 wt% Cu and at 775°C (1425°F) do the following:
    15·1 answer
  • Suppose an assembly requires five components from five different vendors. To guarantee starting the assembly on time with 90 per
    14·1 answer
  • W<br>n só<br>i<br>Eo<br>E<br>find the transfer function​
    9·1 answer
  • An engine jack is used to lift a 265-lb engine 6'. How much work, in ft-lb, is performed?
    11·1 answer
  • Which of the following is true regarding screw gauges and shank?
    5·1 answer
  • An agricultural manager requires
    12·1 answer
  • Their game off badminton is always on Tuesday
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!