SlideShare a Scribd company logo
1 of 15
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

What's hot

17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMSkoolkampus
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating SystemJanki Shah
 
File concept and access method
File concept and access methodFile concept and access method
File concept and access methodrajshreemuthiah
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Operating system 40 lru algorithm
Operating system 40 lru algorithmOperating system 40 lru algorithm
Operating system 40 lru algorithmVaibhav Khanna
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques Kalhan Liyanage
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.Ravi Kumar Patel
 
Peterson Critical Section Problem Solution
Peterson Critical Section Problem SolutionPeterson Critical Section Problem Solution
Peterson Critical Section Problem SolutionBipul Chandra Kar
 
Operating system Dead lock
Operating system Dead lockOperating system Dead lock
Operating system Dead lockKaram Munir Butt
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memorysgpraju
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systemsmridul mishra
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMSkoolkampus
 

What's hot (20)

17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMS
 
Timestamp protocols
Timestamp protocolsTimestamp protocols
Timestamp protocols
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Memory management
Memory managementMemory management
Memory management
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
System call
System callSystem call
System call
 
File concept and access method
File concept and access methodFile concept and access method
File concept and access method
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Operating system 40 lru algorithm
Operating system 40 lru algorithmOperating system 40 lru algorithm
Operating system 40 lru algorithm
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Peterson Critical Section Problem Solution
Peterson Critical Section Problem SolutionPeterson Critical Section Problem Solution
Peterson Critical Section Problem Solution
 
Operating system Dead lock
Operating system Dead lockOperating system Dead lock
Operating system Dead lock
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Deadlock
DeadlockDeadlock
Deadlock
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 

Viewers also liked

protocols of concurrency control
protocols of concurrency controlprotocols of concurrency control
protocols of concurrency controlMOHIT DADU
 
Transaction processing systems
Transaction processing systems Transaction processing systems
Transaction processing systems greg robertson
 
Transaction slide
Transaction slideTransaction slide
Transaction slideshawon roy
 
Transaction Management
Transaction Management Transaction Management
Transaction Management Visakh V
 
Transaction concurrency control
Transaction concurrency controlTransaction concurrency control
Transaction concurrency controlAnand Grewal
 
Transaction management
Transaction managementTransaction management
Transaction managementrenuka_a
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 

Viewers also liked (13)

1 con exe
1 con exe1 con exe
1 con exe
 
protocols of concurrency control
protocols of concurrency controlprotocols of concurrency control
protocols of concurrency control
 
Chapter19
Chapter19Chapter19
Chapter19
 
Concurrency
ConcurrencyConcurrency
Concurrency
 
Transaction processing system
Transaction processing systemTransaction processing system
Transaction processing system
 
Transaction Processing System
Transaction Processing SystemTransaction Processing System
Transaction Processing System
 
Transaction processing systems
Transaction processing systems Transaction processing systems
Transaction processing systems
 
Transaction slide
Transaction slideTransaction slide
Transaction slide
 
Transaction Management
Transaction Management Transaction Management
Transaction Management
 
Transaction concurrency control
Transaction concurrency controlTransaction concurrency control
Transaction concurrency control
 
Transaction management
Transaction managementTransaction management
Transaction management
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 

Similar to Concurrent transactions

Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on TransactionRahul Prajapati
 
Concurrency Control in Distributed Systems.pptx
Concurrency Control in Distributed Systems.pptxConcurrency Control in Distributed Systems.pptx
Concurrency Control in Distributed Systems.pptxMArshad35
 
Concurrency note.pdf
Concurrency note.pdfConcurrency note.pdf
Concurrency note.pdfBijayNag1
 
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptxUnit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptxKoteswari Kasireddy
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryKunal Anand
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesMeghaj Mallick
 
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptx
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptxFALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptx
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptxhritikraj888
 
Design & Development of an Advanced Database Management System Using Multiver...
Design & Development of an Advanced Database Management System Using Multiver...Design & Development of an Advanced Database Management System Using Multiver...
Design & Development of an Advanced Database Management System Using Multiver...IOSR Journals
 
DBMS Presentation.pptx
DBMS Presentation.pptxDBMS Presentation.pptx
DBMS Presentation.pptxPravinBhargav1
 
Introduction to transaction management
Introduction to transaction managementIntroduction to transaction management
Introduction to transaction managementDr. C.V. Suresh Babu
 
Concurrency control
Concurrency controlConcurrency control
Concurrency controlkansel85
 
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfLecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfbadboy624277
 

Similar to Concurrent transactions (20)

Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on Transaction
 
Concurrency Control in Distributed Systems.pptx
Concurrency Control in Distributed Systems.pptxConcurrency Control in Distributed Systems.pptx
Concurrency Control in Distributed Systems.pptx
 
Concurrency Control
Concurrency ControlConcurrency Control
Concurrency Control
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
UNIT II.pptx
UNIT II.pptxUNIT II.pptx
UNIT II.pptx
 
Concurrency note.pdf
Concurrency note.pdfConcurrency note.pdf
Concurrency note.pdf
 
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptxUnit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
 
chp13.pdf
chp13.pdfchp13.pdf
chp13.pdf
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error Recovery
 
Transaction management
Transaction managementTransaction management
Transaction management
 
Dbms voc 5 unit
Dbms voc 5 unitDbms voc 5 unit
Dbms voc 5 unit
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed Databases
 
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptx
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptxFALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptx
FALLSEM2023-24_BCSE302L_TH_VL2023240100957_2023-06-21_Reference-Material-I.pptx
 
F017213747
F017213747F017213747
F017213747
 
F017213747
F017213747F017213747
F017213747
 
Design & Development of an Advanced Database Management System Using Multiver...
Design & Development of an Advanced Database Management System Using Multiver...Design & Development of an Advanced Database Management System Using Multiver...
Design & Development of an Advanced Database Management System Using Multiver...
 
DBMS Presentation.pptx
DBMS Presentation.pptxDBMS Presentation.pptx
DBMS Presentation.pptx
 
Introduction to transaction management
Introduction to transaction managementIntroduction to transaction management
Introduction to transaction management
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfLecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
 

More from Sajan Sahu

Architecture of message oriented middleware
Architecture of message oriented middlewareArchitecture of message oriented middleware
Architecture of message oriented middlewareSajan Sahu
 
Insurance envoy
Insurance envoyInsurance envoy
Insurance envoySajan Sahu
 
Computer’s memory
Computer’s memoryComputer’s memory
Computer’s memorySajan Sahu
 
Automated inspection of aircraft
Automated inspection of aircraftAutomated inspection of aircraft
Automated inspection of aircraftSajan Sahu
 
Data compretion
Data compretionData compretion
Data compretionSajan Sahu
 
Data warehouseing
Data warehouseingData warehouseing
Data warehouseingSajan Sahu
 
Information system
Information systemInformation system
Information systemSajan Sahu
 
Wireless application protocol (WAP)
Wireless application protocol (WAP)Wireless application protocol (WAP)
Wireless application protocol (WAP)Sajan Sahu
 
Blink detection and tracking of eyes for eye localisat
Blink detection and tracking of eyes for eye localisatBlink detection and tracking of eyes for eye localisat
Blink detection and tracking of eyes for eye localisatSajan Sahu
 
Database system
Database systemDatabase system
Database systemSajan Sahu
 
Internet telephony
Internet telephonyInternet telephony
Internet telephonySajan Sahu
 

More from Sajan Sahu (20)

Architecture of message oriented middleware
Architecture of message oriented middlewareArchitecture of message oriented middleware
Architecture of message oriented middleware
 
Insurance envoy
Insurance envoyInsurance envoy
Insurance envoy
 
Computer’s memory
Computer’s memoryComputer’s memory
Computer’s memory
 
Automated inspection of aircraft
Automated inspection of aircraftAutomated inspection of aircraft
Automated inspection of aircraft
 
Data compretion
Data compretionData compretion
Data compretion
 
Deadlock
DeadlockDeadlock
Deadlock
 
Data warehouseing
Data warehouseingData warehouseing
Data warehouseing
 
Information system
Information systemInformation system
Information system
 
Dna computing
Dna computingDna computing
Dna computing
 
Wireless application protocol (WAP)
Wireless application protocol (WAP)Wireless application protocol (WAP)
Wireless application protocol (WAP)
 
Blink detection and tracking of eyes for eye localisat
Blink detection and tracking of eyes for eye localisatBlink detection and tracking of eyes for eye localisat
Blink detection and tracking of eyes for eye localisat
 
Database system
Database systemDatabase system
Database system
 
GPRS
GPRSGPRS
GPRS
 
Bios
BiosBios
Bios
 
Bluetooth
Bluetooth Bluetooth
Bluetooth
 
802.11
802.11802.11
802.11
 
Erp
ErpErp
Erp
 
Internet telephony
Internet telephonyInternet telephony
Internet telephony
 
Wcdma
WcdmaWcdma
Wcdma
 
Criptography
CriptographyCriptography
Criptography
 

Recently uploaded

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Recently uploaded (20)

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

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)