SlideShare a Scribd company logo
5
Most read
9
Most read
10
Most read
CONCURRENT TRANSACTIONS 
1 
Technical Seminar - 2004 
Presented By 
Soumya Ranjan Biswal 
Roll no-IT200118069 
Under the guidance of 
Mr. Anisur Rahman 
Presented By:- Soumya Ranjan Biswal(IT200118069)
2 
Introduction 
Technical Seminar - 2004 
• A transaction is a unit of program execution that accesses and 
possibly updates various data items in a database system. 
• The transactions are required to have the ACID properties: 
atomicity, consistency, isolation, and durability. 
• Transaction processing system usually allows both single as 
well as multiple transactions to run. 
• Concurrent execution of transactions improves throughput of 
transactions & system utilization & also reduces the waiting 
time of transactions. 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Technical Seminar - 2004 
Transaction Concepts 
• A transaction has the following properties: 
Atomicity: All operations of the transaction are reflected 
properly in the database, or none are. 
Consistency: Execution of transaction in isolation preserves the 
3 
consistency of the database. 
Isolation: In this each transaction is unaware of other 
transactions executing concurrently in the 
system. 
Durability: After a transaction completes properly, the changes 
it has made to the database is retained even if there 
are system failures. 
Presented By:- Soumya Ranjan Biswal(IT200118069)
4 
Transaction State 
Technical Seminar - 2004 
• A transaction from the beginning to the end, must be in one of 
the following states: 
Active –Transaction stays here while executing. 
Partially Committed - After the final statement has 
been executed. 
Failed – If normal execution can no longer proceed. 
Aborted – Transaction has been rolled back & 
database restored to its prior state. 
Committed – Transaction is successful. 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Concurrent Execution 
• Concurrent execution means running side by side or parallely 
of transactions. 
• Advantages of Concurrent execution are: 
Improved throughput & Resource utilization – i.e. no. 
of transactions executed increases in a given amount of 
time & the processor is utilized properly. 
Reduced Waiting time – The unpredictable delays in 
running transactions as well as the average response time 
is reduced. 
5 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)
6 
Serializability 
Technical Seminar - 2004 
• The transaction is a unit that preserves consistency, and serial 
execution of transaction guarantees that consistency is 
preserved. 
• A schedule in a transaction captures the key action of 
transaction that affects concurrent execution such as read & 
write operation. 
• So required is that any schedule produced by concurrent 
processing set of transactions will have an effect equivalent to 
a schedule produced when these transactions are run serially. 
• A system that guarantees this property is said to ensure 
serializability. 
Presented By:- Soumya Ranjan Biswal(IT200118069)
• There are 2 types of serializability: 
- Conflict serializability 
- View serializability 
• Serializability of schedules generated by concurrent 
transactions can be ensured through concurrency control 
schemes. 
• The schedules should have the following properties: 
- they must be recoverable. 
- they must be cascadeless. 
7 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Technical Seminar - 2004 
Transaction Definition in SQL 
• It is a data manipulation language which specifies the set of 
action that constitute a transaction. 
• The SQL standard specifies that the transactions begin 
explicitly. 
• The transactions are ended by any one of the following SQL 
statements: 
- Commit work: commits the current transaction & 
8 
begins a new one. 
- Rollback work: It aborts the current transaction. 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Technical Seminar - 2004 
Concurrency control 
• When transactions execute concurrently in the database , the 
consistency of data may not be preserved . So in order to achieve 
control , various Concurrency-control schemes are used. 
• Concurrency-control schemes are also used to ensure 
serializability. All these schemes either delay an operation or 
abort the transaction that issued the operation. 
• Most commonly used Concurrency-control schemes are: 
9 
-locking protocols 
-timestamp based protocols 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Lock based protocols 
• A locking protocol is a set of rules that state when a 
transaction may lock and unlock each of the data items in the 
database. 
• Two-phase locking protocol: this protocol allows a 
transaction to lock a new data item only if that transaction has 
not yet unlocked any data item. This protocol ensures 
serializability, but not deadlock freedom. 
• Strict two-phase locking protocol: It permits release of 
exclusive locks only at the end of transactions, in order to 
ensure recoverability and cascadelessness of the resulting 
schedules. 
10 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Lock based protocols 
• Rigorous two-phase locking protocol: This protocol releases 
all locks only at the end of the transaction. 
11 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Technical Seminar - 2004 
Timestamp-based protocols 
• A timestamp-based protocol ensures serializability by 
selecting an ordering in advance between every pair of 
transactions. 
12 
• It works in the following manner: 
-first a unique fixed timestamp is associated with each 
transaction in the system . 
-these timestamps of the transactions determine the 
serializability order. 
-if the timestamp of transaction Ti is smaller than the 
timestamp of transaction Tm , then the scheme ensures that 
Presented By:- Soumya Ranjan Biswal(IT200118069)
Timestamp-based protocols 
the produced schedule is equivalent to a serial schedule in 
which transaction Ti appears before transaction Tm. 
• It does so by rolling back a transaction whenever such an 
order is violated. 
13 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)
14 
Conclusion 
• This topic describes about the various concepts of transaction 
processing. About what it is and how it works. Furthermore it 
also gives a good layout about the concepts of Concurrent 
transactions. And also how Concurrent execution of 
transactions improves throughput of transactions and system 
utilization reduces waiting time of transactions etc.Also 
present in the report are the various concurrency-control 
schemes which ensure a smooth running of the Concurrent 
transactions as well as the consistency of the database to be 
preserved 
Presented By:- Soumya Ranjan Biswal(IT200118069)
15 
THANK YOU!!! 
Technical Seminar - 2004 
Presented By:- Soumya Ranjan Biswal(IT200118069)

More Related Content

PPTX
Lock based protocols
PPTX
Concurrency control
PPTX
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
PPTX
Transaction Processing in DBMS.pptx
PPTX
Concurrency control
PPTX
Transaction states and properties
PPTX
Principle source of optimazation
PPT
12. Indexing and Hashing in DBMS
Lock based protocols
Concurrency control
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Transaction Processing in DBMS.pptx
Concurrency control
Transaction states and properties
Principle source of optimazation
12. Indexing and Hashing in DBMS

What's hot (20)

PPTX
serializability in dbms
PPTX
Type checking in compiler design
PPT
16. Concurrency Control in DBMS
PPTX
Syntax Analysis in Compiler Design
PPT
Transaction management and concurrency control
PPTX
Distributed concurrency control
PPTX
Input-Buffering
PPTX
Transaction Management - Deadlock Handling
PPTX
Specification-of-tokens
PPTX
Transaction management DBMS
PPT
Type Checking(Compiler Design) #ShareThisIfYouLike
PPT
Pattern matching
PPT
14. Query Optimization in DBMS
PPTX
Validation based protocol
PPTX
Log based and Recovery with concurrent transaction
PPTX
Concurrency control
PPTX
Code Optimization
PPTX
Normalization in DBMS
PPTX
Phased life cycle model
PPTX
Code generation
serializability in dbms
Type checking in compiler design
16. Concurrency Control in DBMS
Syntax Analysis in Compiler Design
Transaction management and concurrency control
Distributed concurrency control
Input-Buffering
Transaction Management - Deadlock Handling
Specification-of-tokens
Transaction management DBMS
Type Checking(Compiler Design) #ShareThisIfYouLike
Pattern matching
14. Query Optimization in DBMS
Validation based protocol
Log based and Recovery with concurrent transaction
Concurrency control
Code Optimization
Normalization in DBMS
Phased life cycle model
Code generation
Ad

Viewers also liked (14)

PPTX
PPTX
protocols of concurrency control
PPT
Chapter19
PPT
Concurrency
PPT
Transaction processing system
PPTX
database recovery techniques
PPT
Transaction Processing System
PPT
Transaction processing systems
PPT
Transaction slide
PPTX
Transaction Management
PPT
Transaction concurrency control
PPT
Transaction management
PPT
Concurrency control
PPT
15. Transactions in DBMS
protocols of concurrency control
Chapter19
Concurrency
Transaction processing system
database recovery techniques
Transaction Processing System
Transaction processing systems
Transaction slide
Transaction Management
Transaction concurrency control
Transaction management
Concurrency control
15. Transactions in DBMS
Ad

Similar to Concurrent transactions (20)

PPTX
Ch 9
DOCX
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
PPT
chapter 1 Transaction_Management_and_Concurrency_Control_all_lectures.ppt
PPT
Class-Transaction Management.ppt Database
PPTX
Transaction management
PDF
Architecture Database_Unit5_Transaction Models and Concurrency Control.pdf
PPTX
Concurrency.education presentation schoolpptx
PPT
Lecture 1-Introduction to Database Transactions.ppt
PPT
transaction management, concept & State
PDF
DBMS Unit III Material
PDF
presentationprintTemp presentationorint.pdf
PDF
Cs501 transaction
PPT
database management system Chapter 5
PPT
dokumen.tips_silberschatz-korth-and-sudarshan1-transactions-transaction-conce...
DOCX
Dbms voc 5 unit
PPTX
DBMS UNIT 4
PPTX
1. Transaction Processing and Concurrency Control.pptx
PPT
CH09.ppt
PPTX
Transactions and Concurrency Control
PPT
Transaction
Ch 9
DBF-Lecture11-Chapter12.pptDatabase Principles Fundam.docx
chapter 1 Transaction_Management_and_Concurrency_Control_all_lectures.ppt
Class-Transaction Management.ppt Database
Transaction management
Architecture Database_Unit5_Transaction Models and Concurrency Control.pdf
Concurrency.education presentation schoolpptx
Lecture 1-Introduction to Database Transactions.ppt
transaction management, concept & State
DBMS Unit III Material
presentationprintTemp presentationorint.pdf
Cs501 transaction
database management system Chapter 5
dokumen.tips_silberschatz-korth-and-sudarshan1-transactions-transaction-conce...
Dbms voc 5 unit
DBMS UNIT 4
1. Transaction Processing and Concurrency Control.pptx
CH09.ppt
Transactions and Concurrency Control
Transaction

More from Sajan Sahu (20)

PPT
Architecture of message oriented middleware
PPT
Insurance envoy
PPT
Computer’s memory
PPT
Automated inspection of aircraft
PPT
Data compretion
PPS
Deadlock
PPT
Data warehouseing
PPT
Information system
PPT
Dna computing
PPT
Wireless application protocol (WAP)
PPT
Blink detection and tracking of eyes for eye localisat
PPS
Database system
PPT
PPT
PPT
Bluetooth
PPT
802.11
PPT
PPT
Internet telephony
PPT
Wcdma
PPS
Criptography
Architecture of message oriented middleware
Insurance envoy
Computer’s memory
Automated inspection of aircraft
Data compretion
Deadlock
Data warehouseing
Information system
Dna computing
Wireless application protocol (WAP)
Blink detection and tracking of eyes for eye localisat
Database system
Bluetooth
802.11
Internet telephony
Wcdma
Criptography

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mushroom cultivation and it's methods.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
project resource management chapter-09.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
A Presentation on Artificial Intelligence
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mushroom cultivation and it's methods.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A novel scalable deep ensemble learning framework for big data classification...
project resource management chapter-09.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A Presentation on Artificial Intelligence
Digital-Transformation-Roadmap-for-Companies.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Unlocking AI with Model Context Protocol (MCP)
Web App vs Mobile App What Should You Build First.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Chapter 5: Probability Theory and Statistics
NewMind AI Weekly Chronicles - August'25-Week II
DP Operators-handbook-extract for the Mautical Institute
Univ-Connecticut-ChatGPT-Presentaion.pdf
1. Introduction to Computer Programming.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Concurrent transactions

  • 1. CONCURRENT TRANSACTIONS 1 Technical Seminar - 2004 Presented By Soumya Ranjan Biswal Roll no-IT200118069 Under the guidance of Mr. Anisur Rahman Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 2. 2 Introduction Technical Seminar - 2004 • A transaction is a unit of program execution that accesses and possibly updates various data items in a database system. • The transactions are required to have the ACID properties: atomicity, consistency, isolation, and durability. • Transaction processing system usually allows both single as well as multiple transactions to run. • Concurrent execution of transactions improves throughput of transactions & system utilization & also reduces the waiting time of transactions. Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 3. Technical Seminar - 2004 Transaction Concepts • A transaction has the following properties: Atomicity: All operations of the transaction are reflected properly in the database, or none are. Consistency: Execution of transaction in isolation preserves the 3 consistency of the database. Isolation: In this each transaction is unaware of other transactions executing concurrently in the system. Durability: After a transaction completes properly, the changes it has made to the database is retained even if there are system failures. Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 4. 4 Transaction State Technical Seminar - 2004 • A transaction from the beginning to the end, must be in one of the following states: Active –Transaction stays here while executing. Partially Committed - After the final statement has been executed. Failed – If normal execution can no longer proceed. Aborted – Transaction has been rolled back & database restored to its prior state. Committed – Transaction is successful. Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 5. Concurrent Execution • Concurrent execution means running side by side or parallely of transactions. • Advantages of Concurrent execution are: Improved throughput & Resource utilization – i.e. no. of transactions executed increases in a given amount of time & the processor is utilized properly. Reduced Waiting time – The unpredictable delays in running transactions as well as the average response time is reduced. 5 Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 6. 6 Serializability Technical Seminar - 2004 • The transaction is a unit that preserves consistency, and serial execution of transaction guarantees that consistency is preserved. • A schedule in a transaction captures the key action of transaction that affects concurrent execution such as read & write operation. • So required is that any schedule produced by concurrent processing set of transactions will have an effect equivalent to a schedule produced when these transactions are run serially. • A system that guarantees this property is said to ensure serializability. Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 7. • There are 2 types of serializability: - Conflict serializability - View serializability • Serializability of schedules generated by concurrent transactions can be ensured through concurrency control schemes. • The schedules should have the following properties: - they must be recoverable. - they must be cascadeless. 7 Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 8. Technical Seminar - 2004 Transaction Definition in SQL • It is a data manipulation language which specifies the set of action that constitute a transaction. • The SQL standard specifies that the transactions begin explicitly. • The transactions are ended by any one of the following SQL statements: - Commit work: commits the current transaction & 8 begins a new one. - Rollback work: It aborts the current transaction. Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 9. Technical Seminar - 2004 Concurrency control • When transactions execute concurrently in the database , the consistency of data may not be preserved . So in order to achieve control , various Concurrency-control schemes are used. • Concurrency-control schemes are also used to ensure serializability. All these schemes either delay an operation or abort the transaction that issued the operation. • Most commonly used Concurrency-control schemes are: 9 -locking protocols -timestamp based protocols Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 10. Lock based protocols • A locking protocol is a set of rules that state when a transaction may lock and unlock each of the data items in the database. • Two-phase locking protocol: this protocol allows a transaction to lock a new data item only if that transaction has not yet unlocked any data item. This protocol ensures serializability, but not deadlock freedom. • Strict two-phase locking protocol: It permits release of exclusive locks only at the end of transactions, in order to ensure recoverability and cascadelessness of the resulting schedules. 10 Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 11. Lock based protocols • Rigorous two-phase locking protocol: This protocol releases all locks only at the end of the transaction. 11 Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 12. Technical Seminar - 2004 Timestamp-based protocols • A timestamp-based protocol ensures serializability by selecting an ordering in advance between every pair of transactions. 12 • It works in the following manner: -first a unique fixed timestamp is associated with each transaction in the system . -these timestamps of the transactions determine the serializability order. -if the timestamp of transaction Ti is smaller than the timestamp of transaction Tm , then the scheme ensures that Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 13. Timestamp-based protocols the produced schedule is equivalent to a serial schedule in which transaction Ti appears before transaction Tm. • It does so by rolling back a transaction whenever such an order is violated. 13 Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 14. 14 Conclusion • This topic describes about the various concepts of transaction processing. About what it is and how it works. Furthermore it also gives a good layout about the concepts of Concurrent transactions. And also how Concurrent execution of transactions improves throughput of transactions and system utilization reduces waiting time of transactions etc.Also present in the report are the various concurrency-control schemes which ensure a smooth running of the Concurrent transactions as well as the consistency of the database to be preserved Presented By:- Soumya Ranjan Biswal(IT200118069)
  • 15. 15 THANK YOU!!! Technical Seminar - 2004 Presented By:- Soumya Ranjan Biswal(IT200118069)