Concurrency Control

Description

to deliver the best of best presentation.
Muhammad  Arshad
Mind Map by Muhammad Arshad, updated 6 months ago
Muhammad  Arshad
Created by Muhammad Arshad 6 months ago
1
0

Resource summary

Concurrency Control
  1. Problem Definition
    1. Objectives
      1. Throughput: number of transactions processed per unit time eg> 1 million transactions per second
        1. Maximum transactions throughput(work perform) while preventing interference among multiple users
        2. Constraint
          1. No interference: result same as serial/sequential effect
            1. Interference occurs on commonly manipulated data known as hot spot.
          2. Concurrency Control Problems
            1. Last Update Problem
              1. Preventing Last Update Problem Using 2PL
              2. Uncommitted Dependency Problem
                1. Preventing Uncommited using 2PL
              3. Concurrency Control Mechanisms
                1. Locking
                  1. Obtain R/W Lock before accessing an item
                    1. Locking Conflicts
                      1. Locking Granularity
                        1. Wait if a conflicting lock is held in The Lock Manager
                          1. Shared Lock ( S lock): conflicts with exclusive locks
                            1. Exclusive Lock (X lock): conflicts with all other kinds of locks
                            2. Two-Phase Locking 2PL
                              1. Growing Phase: All files are getting locked.
                                1. Shrinking Phase: All locks are released
                                  1. Strict 2PL
                                    1. Deadlock
                                      1. Deadlock(Mutual Waiting)
                                        1. Deadlock Resolution
                                          1. Detection
                                            1. Overhead is reasonable for deadlocks among 2 or 3 transactions
                                            2. TimeOut
                                              1. Waiting Limit
                                                1. Can abort transactions that are not deadlock
                                                  1. Timeout interval is difficult to determine
                                          2. Optimistic Concurrency
                                            1. Private Workspaces Each process is executing privately
                                          Show full summary Hide full summary

                                          Similar

                                          Computing Hardware - CPU and Memory
                                          ollietablet123
                                          SFDC App Builder 2
                                          Parker Webb-Mitchell
                                          Data Types
                                          Jacob Sedore
                                          Intake7 BIM L1
                                          Stanley Chia
                                          Software Processes
                                          Nurul Aiman Abdu
                                          Design Patterns
                                          Erica Solum
                                          CCNA Answers – CCNA Exam
                                          Abdul Demir
                                          Abstraction
                                          Shannon Anderson-Rush
                                          Spyware
                                          Sam2
                                          HTTPS explained with Carrier Pigeons
                                          Shannon Anderson-Rush
                                          Data Analytics
                                          anelvr