SlideShare a Scribd company logo
SCHEDULES
AGENDA
• Schedules,
• Serializability (Conflict and View),
Schedules
• Schedule - a sequences of instructions that specify the
chronological order in which instructions of concurrent
transactions are executed
- a schedule for a set of transactions must consist of all
instructions of those transactions
- must preserve the order in which the instructions appear in
each individual transaction.
• A transaction that successfully completes its execution
will have a commit instructions as the last statement
- by default transaction assumed to execute commit
instruction as its last step
• A transaction that fails to successfully complete its
execution will have an abort instruction as the last
statement
Scheduling of Transactions
• 1.Complete Schedule: A schedule that contains
either an abort or a commit for each transaction
whose actions are listed in it is called a complete
schedule.
•
• 2.Serial Schedule:
• Each serial schedule consists of a sequence of
instructions from various transactions, where the
instructions belonging to one single transaction
appear together in that schedule. If the actions of
different transactions are not interleaved , we call
that schedule a serial schedule.
Schedule 1
Schedule 2
• 3.Non-Serial Schedule : A schedule in
which the operation from a set of
concurrent transaction are interleaved is
called a non-serial schedule .
T1 T2
A=A+100
B=B-100
A=A*7.06
B=B*7.06
• 4.Equivalent Schedule:
• For any database state the effect (on the set of
objects in the database) of executing the first
schedule is identical to effect of executing the
second schedule.
• Both schedule are equivalent
• A) B)
T1 T2
A=A+100
B=B-100
A=A*7.06
B=B*7.06
T1 T2
A=A+100
B=B-100
A=A*7.06
B=B*7.06
Schedule 3
Schedule 4
• 5.Serializiable Schedule: A non-serial schedule that
is equivalent to some serial execution of transactions
is called a serializiable schedule.
• For example schedule-3 is serializable schedule,
which is equivalent to schedule-1 and schedule-2.
• The objective of serializability is to find non-serial
schedules that allow transactions to execute
concurrently without interfering with one another,
and thereby produce a database state that could be
produced by a serial execution.
CONFLICTS OF OPERATIONS
• 1.Reading Uncommitted Data(WR Conflict)
• 2.Unrepeatable Reads(RW conflict)
• 3.Overwriting Uncommitted Data(WW Conflict)
Serializability
• Basic Assumption - Each transaction preserves
database consistency.
• Thus serial execution of a set of transactions
preserves database consistency.
• A (possibly concurrent) schedule is serializable if it is
equivalent to a serial schedule. Different forms of
schedule equivalence give rise to the notions of:
1. conflict serializability
2. view serializability
Conflict Serializability
• If a schedule S can be transformed into a schedule S’
by a series of swaps of non-conflicting instructions,
we say that S and S’ are conflict equivalent.
• We say that a schedule S is conflict serializable if it is
conflict equivalent to a serial schedule.
Conflict Serializability
• We need to check the conflicts between two
consecutive operations of two different
transactions in a schedule. Operations upon data
can be read or write. There are two possibilities:
- If two consecutive operations are on different data
items, then they donot conflict i.e, their order of
execution does not matter and we can swap them
without affecting their result.
- If two consecutive operations are on same data items,
then they can conflict i.e their order of execution
matters and we cannot swap them.
Conflict Serializability
• Consider a schedule S in which there are two consecutive
operations Oi and Oj of two transactions Ti and Tj and both
operations refer to the same data item A. Then, there are
following four cases:
1. Oi= read(A) and Oj= read(A). Then, their order does not matter
because same value of A is read by Ti and Tj.
2. Oi= read(A) and Oj= write(A). Then, their order matters. If Oi
comes before Oj then, Oj does not read the value of A written
by Oi. If Oj comes before Oi then, Oi reads the value of A that is
written by Oj.
3. Oi= write(A) and Oj= read(A). Then, their order matters. If Oi
comes before Oj then, Oj reads the value of A written by Oi. If
Oj comes before Oi then, Oj does not read the value of A that
is written by Oi.
4. Oi= write(A) and Oj= write(A). Then, their order matters. If Oi
comes after Oj then, the value of A written by Oi is stored in
database. If Oj comes after Oi then, the value of A written by
Oj is stored in database.
Check whether the given schedule S is
conflict serializable or not-
S : R1(A) , R2(A) , R1(B) , R2(B) , R3(B) ,
W1(A) , W2(B)
Conflict Serializability
View Serializability
• A schedule is said to be view-serializable if it is view-
equivalent to some serial schedule.
• Any schedule that is conflict-serializable is also view-
serializable, but not vice versa.
• Below is a schedule which is view-serializable but not conflict
serializable.
• Every view serializable schedule that is not conflict serializable
has blind writes.
1.Initial read must be same.
S1 : T1 reads A from Database.
S2 : T1 reads A from T2.
∴ S1 ≠ S2.
• 2. There are two transactions say Ti and Tj, The schedule S1
and S2 are view equivalent if in schedule S1, Ti reads A that has
been updated by Tj, and in schedule S2, Ti must read A from
Tj. i.e. write-read(WR) sequence must be same between S1 and
S2.
• S1 : T3 reads value of A from T2.
S2 : T3 reads value of A from T1.
∴ S1 ≠ S2.
i.e. write-read sequence is not same between S1 and S2.
• 3. Final write operations should be same
between S1 and S2.
• S1 : A is finally updated by T3.
S2 : A is finally updated by T1.
∴ S1 ≠ S2.
• What is a Blind Write ??
• If there is no read operation before writing any
value then it is Blind Write. For Example :
View Serializability
Recoverable Schedules
• Need to address the effect of transaction failures on concurrently
running transactions.
• Recoverable schedule — if a transaction Tj reads a data item
previously written by a transaction Ti , then the commit
operation of Ti appears before the commit operation of Tj.
• The following schedule is not recoverable if T9 commits
immediately after the read
• If T8 should abort, T9 would have read an inconsistent database
state. Hence, database must ensure that schedules are
recoverable.
Recoverable Schedules
• A schedule is said to be recoverable, if for each pair of
transaction Ti and Tj such that Tj reads a data item
previously written by Ti, the commit operation of Ti
appears before the commit operation of Tj.
• Both the above schedules are recoverable .
Recoverable Schedules
• Schedule1 is recoverable because T2 reads the
value of A updated by T1 and also T1 commits
before T2 which makes the value read by T2
correct. Then T2 can commit itself.
• In schedule2, if T1 is aborted, T2 has to abort
because the value A it read is incorrect.
• In both cases, the database is in consistent
state.
Cascading Rollbacks
Cascadeless Schedules
• Cascadeless schedules—cascading rollbacks
cannot occur; for each pair of transactions Ti and
Tj such that Tj reads a data item previously
written by Ti, the commit operation of Ti
appears before the read operation of Tj.
• Every cascadeless schedule is also recoverable
• 1
• 2
• 3

More Related Content

What's hot

Acid properties
Acid propertiesAcid properties
Acid properties
Abhilasha Lahigude
 
Locking base concurrency control
  Locking base concurrency control  Locking base concurrency control
Locking base concurrency control
Prakash Poudel
 
Concurrent transactions
Concurrent transactionsConcurrent transactions
Concurrent transactions
Sajan Sahu
 
Join dependency
Join dependencyJoin dependency
Join dependency
SubashreeDoss
 
Crash recovery in database
Crash recovery in databaseCrash recovery in database
Crash recovery in database
Prof.Nilesh Magar
 
Rule based system
Rule based systemRule based system
Rule based system
Dr. C.V. Suresh Babu
 
Concurrency control!
Concurrency control!Concurrency control!
Concurrency control!
Ashish K
 
1.Role lexical Analyzer
1.Role lexical Analyzer1.Role lexical Analyzer
1.Role lexical Analyzer
Radhakrishnan Chinnusamy
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Gyanmanjari Institute Of Technology
 
Transaction Management
Transaction Management Transaction Management
Transaction Management
Visakh V
 
Databases: Concurrency Control
Databases: Concurrency ControlDatabases: Concurrency Control
Databases: Concurrency Control
Damian T. Gordon
 
Chapter17
Chapter17Chapter17
Chapter17
gourab87
 
Software Design - SDLC Model
Software Design - SDLC ModelSoftware Design - SDLC Model
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
Megha Patel
 
Data mining techniques unit 1
Data mining techniques  unit 1Data mining techniques  unit 1
Data mining techniques unit 1
malathieswaran29
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
Dhananjaysinh Jhala
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
Sampath Kumar S
 
Top down parsing
Top down parsingTop down parsing
Top down parsing
LakshmiSamivel
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
koolkampus
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
Soumyajit Dutta
 

What's hot (20)

Acid properties
Acid propertiesAcid properties
Acid properties
 
Locking base concurrency control
  Locking base concurrency control  Locking base concurrency control
Locking base concurrency control
 
Concurrent transactions
Concurrent transactionsConcurrent transactions
Concurrent transactions
 
Join dependency
Join dependencyJoin dependency
Join dependency
 
Crash recovery in database
Crash recovery in databaseCrash recovery in database
Crash recovery in database
 
Rule based system
Rule based systemRule based system
Rule based system
 
Concurrency control!
Concurrency control!Concurrency control!
Concurrency control!
 
1.Role lexical Analyzer
1.Role lexical Analyzer1.Role lexical Analyzer
1.Role lexical Analyzer
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Transaction Management
Transaction Management Transaction Management
Transaction Management
 
Databases: Concurrency Control
Databases: Concurrency ControlDatabases: Concurrency Control
Databases: Concurrency Control
 
Chapter17
Chapter17Chapter17
Chapter17
 
Software Design - SDLC Model
Software Design - SDLC ModelSoftware Design - SDLC Model
Software Design - SDLC Model
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Data mining techniques unit 1
Data mining techniques  unit 1Data mining techniques  unit 1
Data mining techniques unit 1
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
 
Top down parsing
Top down parsingTop down parsing
Top down parsing
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 

Similar to 20.SCHEDULES.ppt

Unit-IV_transaction.pptx
Unit-IV_transaction.pptxUnit-IV_transaction.pptx
Unit-IV_transaction.pptx
PrajwalGaikwad32
 
Transaction and serializability
Transaction and serializabilityTransaction and serializability
Transaction and serializability
Yogita Jain
 
Serializability
SerializabilitySerializability
Serializability
Pyingkodi Maran
 
serializability in dbms
serializability in dbmsserializability in dbms
serializability in dbms
Saranya Natarajan
 
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdfUNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
KavitaShinde26
 
unit06-dbms-new.ppt
unit06-dbms-new.pptunit06-dbms-new.ppt
unit06-dbms-new.ppt
Deekshitha342819
 
Transactions
TransactionsTransactions
Transactions
Ketaki_Pattani
 
Transactions.pptx
Transactions.pptxTransactions.pptx
Transactions.pptx
ssuser754f711
 
Question answer
Question answerQuestion answer
Question answer
vishal choudhary
 
DBMS 4.pdf
DBMS 4.pdfDBMS 4.pdf
DBMS 4.pdf
NithishReddy90
 
Ch15 3717
Ch15 3717Ch15 3717
Ch15 3717
Vinoth Kumar
 
Ch15 3717
Ch15 3717Ch15 3717
concurrencycontrol_databasemanagement_system
concurrencycontrol_databasemanagement_systemconcurrencycontrol_databasemanagement_system
concurrencycontrol_databasemanagement_system
DeepaliKonety
 
DBMS_Unit-4 data bas management (1).pptx
DBMS_Unit-4 data bas management (1).pptxDBMS_Unit-4 data bas management (1).pptx
DBMS_Unit-4 data bas management (1).pptx
cherukuriyuvaraju9
 
Dbms seminar
Dbms seminarDbms seminar
Dbms seminar
RohitK71
 
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTSDBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
SnehalVinod
 
Distributed Database Design and Relational Query Language
Distributed Database Design and Relational Query LanguageDistributed Database Design and Relational Query Language
Distributed Database Design and Relational Query Language
AAKANKSHA JAIN
 
Concurrent Transactions.ppt
Concurrent Transactions.pptConcurrent Transactions.ppt
Concurrent Transactions.ppt
Karthick Panneerselvam
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
Nancy Gulati
 
Unit 5 - PPT.pdf DBMS SRM university chennai
Unit 5 - PPT.pdf DBMS SRM university chennaiUnit 5 - PPT.pdf DBMS SRM university chennai
Unit 5 - PPT.pdf DBMS SRM university chennai
PriyanshuJha69
 

Similar to 20.SCHEDULES.ppt (20)

Unit-IV_transaction.pptx
Unit-IV_transaction.pptxUnit-IV_transaction.pptx
Unit-IV_transaction.pptx
 
Transaction and serializability
Transaction and serializabilityTransaction and serializability
Transaction and serializability
 
Serializability
SerializabilitySerializability
Serializability
 
serializability in dbms
serializability in dbmsserializability in dbms
serializability in dbms
 
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdfUNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
UNIT 2- TRANSACTION CONCEPTS AND CONCURRENCY CONCEPTS (1).pdf
 
unit06-dbms-new.ppt
unit06-dbms-new.pptunit06-dbms-new.ppt
unit06-dbms-new.ppt
 
Transactions
TransactionsTransactions
Transactions
 
Transactions.pptx
Transactions.pptxTransactions.pptx
Transactions.pptx
 
Question answer
Question answerQuestion answer
Question answer
 
DBMS 4.pdf
DBMS 4.pdfDBMS 4.pdf
DBMS 4.pdf
 
Ch15 3717
Ch15 3717Ch15 3717
Ch15 3717
 
Ch15 3717
Ch15 3717Ch15 3717
Ch15 3717
 
concurrencycontrol_databasemanagement_system
concurrencycontrol_databasemanagement_systemconcurrencycontrol_databasemanagement_system
concurrencycontrol_databasemanagement_system
 
DBMS_Unit-4 data bas management (1).pptx
DBMS_Unit-4 data bas management (1).pptxDBMS_Unit-4 data bas management (1).pptx
DBMS_Unit-4 data bas management (1).pptx
 
Dbms seminar
Dbms seminarDbms seminar
Dbms seminar
 
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTSDBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
 
Distributed Database Design and Relational Query Language
Distributed Database Design and Relational Query LanguageDistributed Database Design and Relational Query Language
Distributed Database Design and Relational Query Language
 
Concurrent Transactions.ppt
Concurrent Transactions.pptConcurrent Transactions.ppt
Concurrent Transactions.ppt
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
 
Unit 5 - PPT.pdf DBMS SRM university chennai
Unit 5 - PPT.pdf DBMS SRM university chennaiUnit 5 - PPT.pdf DBMS SRM university chennai
Unit 5 - PPT.pdf DBMS SRM university chennai
 

Recently uploaded

Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
introduction to solar energy for engineering.pdf
introduction to solar energy for engineering.pdfintroduction to solar energy for engineering.pdf
introduction to solar energy for engineering.pdf
ravindarpurohit26
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...
IJECEIAES
 

Recently uploaded (20)

Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
introduction to solar energy for engineering.pdf
introduction to solar energy for engineering.pdfintroduction to solar energy for engineering.pdf
introduction to solar energy for engineering.pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...
 

20.SCHEDULES.ppt

  • 3. Schedules • Schedule - a sequences of instructions that specify the chronological order in which instructions of concurrent transactions are executed - a schedule for a set of transactions must consist of all instructions of those transactions - must preserve the order in which the instructions appear in each individual transaction. • A transaction that successfully completes its execution will have a commit instructions as the last statement - by default transaction assumed to execute commit instruction as its last step • A transaction that fails to successfully complete its execution will have an abort instruction as the last statement
  • 4. Scheduling of Transactions • 1.Complete Schedule: A schedule that contains either an abort or a commit for each transaction whose actions are listed in it is called a complete schedule. •
  • 5. • 2.Serial Schedule: • Each serial schedule consists of a sequence of instructions from various transactions, where the instructions belonging to one single transaction appear together in that schedule. If the actions of different transactions are not interleaved , we call that schedule a serial schedule.
  • 8. • 3.Non-Serial Schedule : A schedule in which the operation from a set of concurrent transaction are interleaved is called a non-serial schedule . T1 T2 A=A+100 B=B-100 A=A*7.06 B=B*7.06
  • 9. • 4.Equivalent Schedule: • For any database state the effect (on the set of objects in the database) of executing the first schedule is identical to effect of executing the second schedule. • Both schedule are equivalent • A) B) T1 T2 A=A+100 B=B-100 A=A*7.06 B=B*7.06 T1 T2 A=A+100 B=B-100 A=A*7.06 B=B*7.06
  • 12. • 5.Serializiable Schedule: A non-serial schedule that is equivalent to some serial execution of transactions is called a serializiable schedule. • For example schedule-3 is serializable schedule, which is equivalent to schedule-1 and schedule-2. • The objective of serializability is to find non-serial schedules that allow transactions to execute concurrently without interfering with one another, and thereby produce a database state that could be produced by a serial execution.
  • 13. CONFLICTS OF OPERATIONS • 1.Reading Uncommitted Data(WR Conflict) • 2.Unrepeatable Reads(RW conflict) • 3.Overwriting Uncommitted Data(WW Conflict)
  • 14. Serializability • Basic Assumption - Each transaction preserves database consistency. • Thus serial execution of a set of transactions preserves database consistency. • A (possibly concurrent) schedule is serializable if it is equivalent to a serial schedule. Different forms of schedule equivalence give rise to the notions of: 1. conflict serializability 2. view serializability
  • 15. Conflict Serializability • If a schedule S can be transformed into a schedule S’ by a series of swaps of non-conflicting instructions, we say that S and S’ are conflict equivalent. • We say that a schedule S is conflict serializable if it is conflict equivalent to a serial schedule.
  • 16. Conflict Serializability • We need to check the conflicts between two consecutive operations of two different transactions in a schedule. Operations upon data can be read or write. There are two possibilities: - If two consecutive operations are on different data items, then they donot conflict i.e, their order of execution does not matter and we can swap them without affecting their result. - If two consecutive operations are on same data items, then they can conflict i.e their order of execution matters and we cannot swap them.
  • 17. Conflict Serializability • Consider a schedule S in which there are two consecutive operations Oi and Oj of two transactions Ti and Tj and both operations refer to the same data item A. Then, there are following four cases: 1. Oi= read(A) and Oj= read(A). Then, their order does not matter because same value of A is read by Ti and Tj. 2. Oi= read(A) and Oj= write(A). Then, their order matters. If Oi comes before Oj then, Oj does not read the value of A written by Oi. If Oj comes before Oi then, Oi reads the value of A that is written by Oj. 3. Oi= write(A) and Oj= read(A). Then, their order matters. If Oi comes before Oj then, Oj reads the value of A written by Oi. If Oj comes before Oi then, Oj does not read the value of A that is written by Oi. 4. Oi= write(A) and Oj= write(A). Then, their order matters. If Oi comes after Oj then, the value of A written by Oi is stored in database. If Oj comes after Oi then, the value of A written by Oj is stored in database.
  • 18.
  • 19. Check whether the given schedule S is conflict serializable or not- S : R1(A) , R2(A) , R1(B) , R2(B) , R3(B) , W1(A) , W2(B)
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 32. View Serializability • A schedule is said to be view-serializable if it is view- equivalent to some serial schedule. • Any schedule that is conflict-serializable is also view- serializable, but not vice versa. • Below is a schedule which is view-serializable but not conflict serializable. • Every view serializable schedule that is not conflict serializable has blind writes.
  • 33. 1.Initial read must be same. S1 : T1 reads A from Database. S2 : T1 reads A from T2. ∴ S1 ≠ S2.
  • 34. • 2. There are two transactions say Ti and Tj, The schedule S1 and S2 are view equivalent if in schedule S1, Ti reads A that has been updated by Tj, and in schedule S2, Ti must read A from Tj. i.e. write-read(WR) sequence must be same between S1 and S2. • S1 : T3 reads value of A from T2. S2 : T3 reads value of A from T1. ∴ S1 ≠ S2. i.e. write-read sequence is not same between S1 and S2.
  • 35. • 3. Final write operations should be same between S1 and S2. • S1 : A is finally updated by T3. S2 : A is finally updated by T1. ∴ S1 ≠ S2.
  • 36. • What is a Blind Write ?? • If there is no read operation before writing any value then it is Blind Write. For Example :
  • 38. Recoverable Schedules • Need to address the effect of transaction failures on concurrently running transactions. • Recoverable schedule — if a transaction Tj reads a data item previously written by a transaction Ti , then the commit operation of Ti appears before the commit operation of Tj. • The following schedule is not recoverable if T9 commits immediately after the read • If T8 should abort, T9 would have read an inconsistent database state. Hence, database must ensure that schedules are recoverable.
  • 39. Recoverable Schedules • A schedule is said to be recoverable, if for each pair of transaction Ti and Tj such that Tj reads a data item previously written by Ti, the commit operation of Ti appears before the commit operation of Tj. • Both the above schedules are recoverable .
  • 40. Recoverable Schedules • Schedule1 is recoverable because T2 reads the value of A updated by T1 and also T1 commits before T2 which makes the value read by T2 correct. Then T2 can commit itself. • In schedule2, if T1 is aborted, T2 has to abort because the value A it read is incorrect. • In both cases, the database is in consistent state.
  • 42. Cascadeless Schedules • Cascadeless schedules—cascading rollbacks cannot occur; for each pair of transactions Ti and Tj such that Tj reads a data item previously written by Ti, the commit operation of Ti appears before the read operation of Tj. • Every cascadeless schedule is also recoverable