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
Anvisha [2.4K]
3 years ago
5

1. Consider a database with object X and Y and assume that there are two transactions T1 and T2. Transaction T1 reads objects X

and Y and then writes object X. Transaction T2 reads objects X and Y and writes objects X and Y. (a) Give an example schedule with actions of transaction T1 and T2 on objects X and Y that results in a write-read conflict. (b) Give an example schedule with actions of transaction T1 and T2 on objects X and Y that results in a read-write conflict. (c) Give an example schedule with actions of transaction T1 and T2 on objects X and Y that results in a write-write conflict. (d) For each of the schedules, show that strict 2PL disallows the schedule.
Computers and Technology
1 answer:
Tcecarenko [31]3 years ago
7 0

Answer:

See explaination

Explanation:

1. The following schedule results in a write-read conflict:

T2:R(X), T2:R(Y), T2:W(X), T1:R(X) ...

T1:R(X) is a dirty read here.

2. The following schedule results in a read-write conflict:

T2:R(X), T2:R(Y), T1:R(X), T1:R(Y), T1:W(X) ...

Now, T2 will get an unrepeatable read on X.

3. The following schedule results in a write-write conflict:

T2:R(X), T2:R(Y), T1:R(X), T1:R(Y), T1:W(X), T2:W(X) ...

Now, T2 has overwritten uncommitted data.

Below history will show that T1 and T2 preserves the consistency requirement of the database

T1 T2:R1X, R1Y, W1X, c1, R2X, R2Y, W2X, W2Y, c2

T2 T1:R2X, R2Y, W2X, W2Y, c2,R1X, R1Y, W1X, c1

b)

To eliminate both undo and redo, all of T’s updates must be recorded in the stable database in a single atomic operation when T commits

We can implement this strategy using Shadowing and Stable database techniques.

You might be interested in
What is an umbrella of software programs that may include​ CAD/CAM, product​ routing, maintenance, and other product​ concerns?
Andrew [12]

Answer:

Product lifecycle management software

Explanation:

Characteristics.

  • Complete set of tools to establish decision criteria regarding the portfolio and simulations for  product planning.
  • It allows the standardization and automation of the processes of request of alterations in the product, controlling the  decisions, deadlines and ensuring traceability.
  • Improves efficiency in product design.
  • <em>Example SoftExpert PLM </em>is an accessible, easy-to-use and completely web solution for managing the life cycle of  products.
6 0
4 years ago
what is the largest possible number of internal nodes in a redblack tree with black height k? what is the smallest possiblenumbe
Elina [12.6K]

Answer:

A Red Black Tree is a type of self-balancing(BST) in this tree ,each node is red or black colored. The red black tree meets all the properties of the binary search tree, but some additional properties have been added to a Red Black Tree.

A Red-Black tree's height is O(Logn) where (n is the tree's amount of nodes).

In a red-black tree with black height k

The maximum number of internal nodes is 2^{2k} -1.

The smallest possible number is 2^{k} -1.

7 0
3 years ago
Which definition of intelligence is based on the Turing test?
Kitty [74]

Answer:

The Turing Test is a deceptively simple method of determining whether a machine can demonstrate human intelligence

Explanation:

8 0
3 years ago
What's wrong with Brainly now? Now people think it's site for s.ex which it isn't. These weirdos need to go
Dmitry [639]

Answer:

Honestly it is disgusting.

6 0
3 years ago
Read 2 more answers
Given the following business scenario, create a Crow’s Foot ERD using a specialization hierarchy if appropriate. Two-Bit Drillin
Roman55 [17]

Answer:

Crows Foot ERD of TWo-Bit Drilling Company  

  • The circumstance is that organization holds the data of representative and protection wards in which a worker can have more than one ward or no ward however all the wards ought to be snared with just a single worker.  
  • The representative table contains all data of worker and the protection subordinate table contain data of worker's needy.  
  • A few representatives are examiners which contains the extra information of date of accreditation and confirmation recharging date.  
  • The EMPLOYEE table contains EMP_NO, EMP_NAME, EMP_DATEHIRED, EMP_TITLE, EMP TYPE and EMP SSN as traits.  
  • The INSURANCE_ DEPENDENT table contains subordinate EMP_NO, DEPENDENT_NAME, DEPENDENT_DOB and DEPENDENT_RELATIONSHIP (relationship of ward and worker).  
  • One Employee can be identified with at least 0 Dependents however any Dependent is identified with just a single Employee.  
  • EMP_TYPE is the subtype discriminator which tells the event of INSPECTOR.

The Attached file Show the Crow Foot ERD

6 0
3 years ago
Other questions:
  • ______ occurs when the system finds itself spending so much time swapping pages into and out from memory that little time is lef
    6·1 answer
  • What savings account has the best rate of return on his interest
    12·1 answer
  • Which is a group of related software applications that are bundled and sold together?
    9·2 answers
  • What type of link is used to call this file?
    8·1 answer
  • Why does world of tanks keep downloading when I'm not even at the computer
    9·1 answer
  • Dany needs to fact check notes she took on 19th
    13·1 answer
  • PLEASE HELP!!!
    12·1 answer
  • What is modularity? Help asap
    9·1 answer
  • To all paladins players out there!!!!!
    14·1 answer
  • The events that happen in a story are called the _________________.
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!