Concurrency Control I (13) (Kiểm soát đồng thời trong hệ thống CSDL) (Tiếng Anh)
Generating preview...
Slide bài giảng về kiểm soát đồng thời (Concurrency Control) trong giao dịch cơ sở dữ liệu, giới thiệu khái niệm transaction, tính chất ACID, lập lịch khả tuần tự (serializability) và ví dụ vấn đề tương tranh.
Description
Data-Intensive Computing Systems Concurrency Control Shivnath Babu 1 Transaction Programming abstraction Implement real-world transactions Banking transaction Airline reservation 2 Transaction: Programmer’s Role Transaction Consistent State Consistent State 3 Transaction: System’s Role Atomicity All changes of the transaction recorded or none at all Durability All future transactions see the changes made by this transaction if it completes Isolation Net effect as if the transaction executed in isolation 4 Transaction: States Abort Begin Run Commit 5 Transactions Historical note: Turing Award for Transaction concept Jim Gray (1998) Interesting reading: Transaction Concept: Virtues and Limitations by Jim Gray http://www.hpl.hp.com/techreports/tandem/TR-81.3.pdf 6 Context We have seen: Ensure atomicity in presence of failures Next: Ensure Isolation during concurrency 7 Issues with Concurrency: Example Bank database: 3 Accounts A = 500 Account Balances B = 500 C = 500 Property: A + B + C = 1500 Money does not leave the system 8 Issues with Concurrency: Example Transaction T1: Transfer 100 from A to B A = 500, B = 500, C = 500 Read (A, t) t = t - 100 Write (A, t) Read (B, t) t = t + 100 Write (B, t) A = 400, B = 600, C = 500 9 Issues with Concurrency: Example Transaction T2: Transfer 100 from A to C Read (A, s) s = s - 100 Write (A, s) Read (C, s) s = s + 100 Write (C, s) 10 Transaction T1 Transaction T2 Read (A, t) t = t - 100 Read (A, s) s = s - 100 Write (A, s) Write (A, t) Read (B, t) t = t + 100 Write (B, t) Read (C, s) s = s + 100 Write (C, s) A B C 500 500 500 400 500 500 400 500 500 400 600 500 400 600 600 400 + 600 + 600 = 1600 Transaction T1 Transaction T2 Read (A, t) t = t - 100 Write (A, t) Read (A, s) s = s - 100 Write (A, s) Read (B, t) t = t + 100 Write (B, t) Read (C, s) s = s + 100 Write (C, s) A B C 500 500 500 400 500 500 300 500 500 3
AI summary
- Document name
- Concurrency Control I (13) (Kiểm soát đồng thời trong hệ thống CSDL) (Tiếng Anh)
- School / Course
- Duke University · Cơ sở dữ liệu
- Author (in document)
- Shivnath Babu
- Content
- Tài liệu tập trung vào việc đảm bảo tính cô lập cho các giao dịch khi chúng chạy đồng thời, tránh các vấn đề như mất dữ liệu hoặc trạng thái không nhất quán. Nó giới thiệu serializability như một tiêu chuẩn để đánh giá tính đúng đắn của các lịch trình.
- Table of contents
- Transaction
- Transaction: Programmer’s Role
- Transaction: System’s Role
- Transaction: States
- Transactions
- Context
- Issues with Concurrency: Example
- Terminology
- Problems
- Correct Schedules: Serializability
- Serial Schedule
- Is this Serializable?
- Pages
- 60 pages
- Uploaded by
- Uni24h
Frequently asked questions
Is this document free?
Yes. “Concurrency Control I (13) (Kiểm soát đồng thời trong hệ thống CSDL) (Tiếng Anh)” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 60 pages, for the course Cơ sở dữ liệu. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.
Concurrency Control I (13) (Kiểm soát đồng thời trong hệ thống CSDL) (Tiếng Anh)
Generating preview...
Data-Intensive Computing Systems Concurrency Control Shivnath Babu 1 Transaction Programming abstraction Implement real-world transactions Banking transaction Airline reservation 2 Transaction: Programmer’s Role Transaction Consistent State Consistent State 3 Transaction: System’s Role Atomicity All changes of the transaction recorded or none at all Durability All future transactions see the changes made by this transaction if it completes Isolation Net effect as if the transaction executed in isolation 4 Transaction: States Abort Begin Run Commit 5 Transactions Historical note: Turing Award for Transaction concept Jim Gray (1998) Interesting reading: Transaction Concept: Virtues and Limitations by Jim Gray http://www.hpl.hp.com/techreports/tandem/TR-81.3.pdf 6 Context We have seen: Ensure atomicity in presence of failures Next: Ensure Isolation during concurrency 7 Issues with Concurrency: Example Bank database: 3 Accounts A = 500 Account Balances B = 500 C = 500 Property: A + B + C = 1500 Money does not leave the system 8 Issues with Concurrency: Example Transaction T1: Transfer 100 from A to B A = 500, B = 500, C = 500 Read (A, t) t = t - 100 Write (A, t) Read (B, t) t = t + 100 Write (B, t) A = 400, B = 600, C = 500 9 Issues with Concurrency: Example Transaction T2: Transfer 100 from A to C Read (A, s) s = s - 100 Write (A, s) Read (C, s) s = s + 100 Write (C, s) 10 Transaction T1 Transaction T2 Read (A, t) t = t - 100 Read (A, s) s = s - 100 Write (A, s) Write (A, t) Read (B, t) t = t + 100 Write (B, t) Read (C, s) s = s + 100 Write (C, s) A B C 500 500 500 400 500 500 400 500 500 400 600 500 400 600 600 400 + 600 + 600 = 1600 Transaction T1 Transaction T2 Read (A, t) t = t - 100 Write (A, t) Read (A, s) s = s - 100 Write (A, s) Read (B, t) t = t + 100 Write (B, t) Read (C, s) s = s + 100 Write (C, s) A B C 500 500 500 400 500 500 300 500 500 3
Read full document
- Document name
- Concurrency Control I (13) (Kiểm soát đồng thời trong hệ thống CSDL) (Tiếng Anh)
- School / Course
- Duke University · Cơ sở dữ liệu
- Author (in document)
- Shivnath Babu
- Content
- Tài liệu tập trung vào việc đảm bảo tính cô lập cho các giao dịch khi chúng chạy đồng thời, tránh các vấn đề như mất dữ liệu hoặc trạng thái không nhất quán. Nó giới thiệu serializability như một tiêu chuẩn để đánh giá tính đúng đắn của các lịch trình.
- Table of contents
- Transaction
- Transaction: Programmer’s Role
- Transaction: System’s Role
- Transaction: States
- Transactions
- Context
- Issues with Concurrency: Example
- Terminology
- Problems
- Correct Schedules: Serializability
- Serial Schedule
- Is this Serializable?
- Pages
- 60 pages
- Uploaded by
- Uni24h
Comments (0)
No comments yet. Be the first!
Thiết kế quản trị Cơ sở dữ liệu - Notes 2 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 1 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 3 (HUST) GV. Vũ Tuyết Trinh
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Comments (0)
No comments yet. Be the first!