
- DBMS Tutorial
- DBMS - Home
- DBMS - Overview
- DBMS - Architecture
- DBMS - Data Models
- DBMS - Data Schemas
- DBMS - Data Independence
- Entity Relationship Model
- DBMS - ER Model Basic Concepts
- DBMS - ER Diagram Representation
- DBMS - Generalization, Aggregation
- Relational Model
- DBMS - Codd's Rules
- DBMS - Relational Data Model
- DBMS - Relational Algebra
- DBMS - ER to Relational Model
- DBMS- SQL Overview
- Relational Database Design
- DBMS - Database Normalization
- DBMS - Database Joins
- Storage and File Structure
- DBMS - Storage System
- DBMS - File Structure
- Indexing and Hashing
- DBMS - Indexing
- DBMS - Hashing
- Transaction And Concurrency
- DBMS - Transaction
- DBMS - Concurrency Control
- DBMS - Deadlock
- Backup and Recovery
- DBMS - Data Backup
- DBMS - Data Recovery
- DBMS Useful Resources
- DBMS - Quick Guide
- DBMS - Useful Resources
- DBMS - Discussion
When do we say the schedule is conflict equivalent(DBMS)?
Two schedules are said to be conflict equivalent if the order of any two conflicting operations are the same in both the schedules.
Also, a concurrent schedule S is conflict equivalent to a serial schedule S’, if we can obtain S’ out of S by swapping the order of execution of non-conflicting instructions.
Example 1
Even if the schedule S1 keeps the database in the consistent state, we cannot convert it into a serial schedule and hence we conclude that the schedule is not conflict equivalent to any of the serial schedules.
So, instead of considering only the read and write operation, we will also consider the intermediate operations which will result in a new form of serializability known as view serializability.
So by seeing above transactions S1 is the conflict equivalent of S2.
Example 2
Two schedules are said to be conflict equivalent if the order of any two conflicting operations are the same in both the schedules.
The pre-requisite conditions for conflicting operations are −
The two conflicting operations should belong to two different transactions.
They should be acting over the same database or variable say x.
At least one of the operations should be "Write". For example, operations should be like Read-write; Write-Write; Write-Read
Schedule 1 | Schedule 2 |
---|---|
R1(x) | R1(y) |
W2(x) | R1(x) |
R1(y) | W2(x) |
Here in the example,
R(x) - Read operation over variable x
W(x) - Write operation over variable x
R1W2 is the conflicting operation. As the order is the same in both the schedules.
- Related Articles
- When do we say that work is done ?
- What do you mean by schedule in DBMS?
- Explain about conflict serializability in DBMS
- Why do we say that Ganga is ‘dead’ at many places?
- Explain the precedence graph for testing conflict serializability(DBMS)
- Why do we say that sound waves are longitudinal?
- Why do we say three is no natural death in single-celled organisms?
- When do we we get sun stroke ?
- Can we say that the circle is a quadrilateral?
- When do we need Continuous Compounding?
- Why do we close our eyes when we sneeze?
- Why Do We Feel Cold When We Have Fever?
- Why do we feel hot when we wear winter clothes?
- How many bones do we have when we are newborns?
- When we burn wool why do we get the smell of hair burn?
