SlideShare a Scribd company logo
1 of 33
SEQUENTIAL CONSISTENCY
MODEL
Mrs.A.Bharathi Lakshmi,
Assistant Professor & Head,
V.V.Vanniaperumal College For Women,
Virudhunagar.
Consistency Models
Types:
• Strict Consistency Model
• Sequential Consistency Model
• Causal Consistency Model
• Pipelined Random Access Memory Consistency Model
• Processor Consistency Model
• Weak Consistency Model
• Release Consistency Model
Strict Consistency Model
• Strongest Form of Memory Coherence
• Value returned by read = Value written by write
• All writes become visible instantaneously
• Implementation requires absolute global time
• Absolute synchronization of clock is not possible
• Implementation is practically impossible
• The ordering of operation is not changeable.
Sequential Consistency Model
• Proposed by Lamport [1979]
• All processes in same order support this model
• Exact order of access operations are interleaved does not matter
• If the three operations read(r1), write(w1), read(r2) are performed in that order
• (r1, w1, r2), (r1, r2, w1), (w1, r1, r2), (w1, r2, r1), (r2, r1, w1), (r2, w1, r1) any of
the ordereing is acceptable
• Consistency requirement is weak compared to Strict model
• Provide One Copy/ Single Copy semantics
• Accepted by most of the applications
Causal Consistency Model
• Proposed by Hutto and Ahamad (1990)
• All processes see memory reference operations in correct order that
are potentially causally related
• Memory Operation not related can be seen by different processes
• Memory reference operation is related to another memory reference
operation if one might have been influenced by the other
• Maintaining dependency graphs for memory access operations
Pipelined Random Access Memory
Consistency Model
• Proposed by Lipton and Sandberg (1988)
• Provides a weaker consistency semantics than the consistency model
• Ensures that all write operations performed by a single process are seen by all
other processes in the order they performed
• All write operations performed by a single process are in a pipeline
• Write operations performed by different processes can be seen by different
processes in different order
• Simple and easy to implement and also has good performance
• PRAM consistency all processes do not agree on the same order of memory
reference operations
Processor Consistency Model
• Proposed by Goodman [1989]
• Very similar to PRAM model with additional restriction of memory
coherence
• Memory coherence - for any memory location all processes agree on
the same order of all write operations performed on the same
memory location
Weak Consistency Model
• Proposed by Dubois [1988]
• Common characteristics
• It is not necessary to show the change in memory done by every write operation to other
processes
• Isolated accesses to shared variable are rare
• Better performance can be achieved on a group of memory reference operations
• uses a special variable called a synchronization variable
• All accesses to synchronization variables must obey sequential consistency semantics
• Write operations must be completed before an access to a synchronization variable
• All previous accesses to synchronization variables must be completed before access to a non-
synchronization variable
Release Consistency Model (Contd…)
• Requirement to Implement
• All accesses to acquire and release synchronization variable obey processor
consistency semantics
• All previous acquires perform by a process must be completed successfully
before the process is allowed to perform a data access operation on the
memory
• All previous data access operations performed by a process must be
completed successfully before a release access done by the process is allowed
Implementing Sequential Consistency Model
• Most commonly used model
• Protocols depends on Replication and Migration of data blocks
• Strategies
• Nonreplicated, Nonmigrating blocks (NRNMB)
• Nonreplicated, migrating blocks (NRMB)
• Replicated, migrating blocks (RMB)
• Replicated, Nonmigrating blocks (RNMB)
NRNMB Strategy
• Simplest Strategy
• Each block has a single copy whose location is fixed
• Enforcing sequential consistency is simple
• Drawback
• Serializing data access creates a bottleneck
• Parallelism is not possible
• Data Location
• There is a single copy of each block in the entire system
• The location of a block never changes
• Hence use Mapping Function
NRNMB Strategy (Contd…)
NRMB Strategy
• Each block of the shared memory has a single copy
• Only the processes executing on one node can read or write a given
data item at any one time
NRMB Strategy (contd…)
• Advantage
• No communication Cost
• Data Access Locality
• Drawback
• Thrashing Occurs
• Parallelism is not possible
NRMB Strategy (contd…)
• Data Location
• Broadcasting
• Centralized Server algorithm
• Fixed Distributed Server algorithm
• Dynamic Distributed Server algorithm
NRMB Strategy (contd…)
• Broadcasting
• Each node maintains an owned blocks table that contains an entry for each
block for which the node is the current owner
NRMB Strategy (contd…)
• Centralized Server Algorithm
• A centralized server maintains a block table that contains the location
information for all block in the shared memory space
• Drawbacks
• A centralized server serializes location queries, reducing parallelism
• The failure of the centralized server will cause the DSM system to stop
functioning
NRMB Strategy (contd…)
NRMB Strategy (contd…)
• Fixed Distributed Server algorithm
• Extension of the centralized server scheme
• It overcomes the drawbacks of the centralized server scheme by distributing
the role of the centralized server
• Whenever a fault occurs, the mapping functions is used by the fault handler
of the faulting node to find out the node whose block manager is mapping
the currently accessed block
NRMB Strategy (contd…)
NRMB Strategy (contd…)
• Dynamic Distributed Server algorithm
• Does not use any block manager
• Each node has a block table that contains the ownership information for all
block
• A field gives a hint on the location of the owner of a block – probable owner
• When fault occurs, the faulting node extracts the node information
NRMB Strategy (contd…)
RMB Strategy
• Parallelism is possible
• DSM replicates blocks to increase parallelism
• Replication  cost of write operation
• Protocols
• Write Invalidate
• Write Update
RMB Strategy (contd…)
• Write Invalidate
RMB Strategy (contd…)
• Write Update
RMB Strategy (contd…)
• Data Location
• Broadcasting
• Centralized Server algorithm
• Fixed Distributed Server algorithm
• Dynamic Distributed Server algorithm
RMB Strategy (contd…)
• Broadcasting
RMB Strategy (contd…)
• Centralized Server algorithm
RMB Strategy (contd…)
• Fixed Distributed Server algorithm
RMB Strategy (Contd…)
• Dynamic Distributed Server algorithm
RNMB Strategy (Contd…)
• Can be replicated at multiple nodes
• Location of each replica is fixed
• Replicas are kept consistent
• Updating them in all cases
• Sequential consistency is ensured by global sequencer
RNMB Strategy
• Data Location
• The replica location of a block never change
• All replicas of a data block are kept consistent
• Only a read request can be directly send to one of the node having a replica.
RNMB Strategy

More Related Content

What's hot

Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling  IN Advanced Computer Architectureprogram partitioning and scheduling  IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer ArchitecturePankaj Kumar Jain
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecturePankaj Kumar Jain
 
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
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed systemSunita Sahu
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Operating system Memory management
Operating system Memory management Operating system Memory management
Operating system Memory management Shashank Asthana
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed SystemsDr Sandeep Kumar Poonia
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Deadlock in Distributed Systems
Deadlock in Distributed SystemsDeadlock in Distributed Systems
Deadlock in Distributed SystemsPritom Saha Akash
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
 
Distributed system unit II according to syllabus of RGPV, Bhopal
Distributed system unit II according to syllabus of  RGPV, BhopalDistributed system unit II according to syllabus of  RGPV, Bhopal
Distributed system unit II according to syllabus of RGPV, BhopalNANDINI SHARMA
 
Parallel computing
Parallel computingParallel computing
Parallel computingVinay Gupta
 

What's hot (20)

Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
 
Multithreading
MultithreadingMultithreading
Multithreading
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling  IN Advanced Computer Architectureprogram partitioning and scheduling  IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecture
 
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
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Operating system Memory management
Operating system Memory management Operating system Memory management
Operating system Memory management
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Memory management
Memory managementMemory management
Memory management
 
Resource management
Resource managementResource management
Resource management
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Deadlock in Distributed Systems
Deadlock in Distributed SystemsDeadlock in Distributed Systems
Deadlock in Distributed Systems
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Memory management
Memory managementMemory management
Memory management
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Memory management
Memory managementMemory management
Memory management
 
Distributed system unit II according to syllabus of RGPV, Bhopal
Distributed system unit II according to syllabus of  RGPV, BhopalDistributed system unit II according to syllabus of  RGPV, Bhopal
Distributed system unit II according to syllabus of RGPV, Bhopal
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 

Similar to Sequential consistency model

MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEMC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEAravind NC
 
Week 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxWeek 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxFaizanSaleem81
 
Fault tolerant presentation
Fault tolerant presentationFault tolerant presentation
Fault tolerant presentationskadyan1
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptaakarshsiwani1
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programmingShaveta Banda
 
Parallel architecture &programming
Parallel architecture &programmingParallel architecture &programming
Parallel architecture &programmingIsmail El Gayar
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsAhmed Magdy Ezzeldin, MSc.
 
18 parallel processing
18 parallel processing18 parallel processing
18 parallel processingdilip kumar
 
Lecture 2
Lecture 2Lecture 2
Lecture 2Mr SMAK
 
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxPPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxneju3
 

Similar to Sequential consistency model (20)

Lecture4
Lecture4Lecture4
Lecture4
 
Lost with data consistency
Lost with data consistencyLost with data consistency
Lost with data consistency
 
Lecture6
Lecture6Lecture6
Lecture6
 
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEMC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
 
Week 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxWeek 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptx
 
Fault tolerant presentation
Fault tolerant presentationFault tolerant presentation
Fault tolerant presentation
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.ppt
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Parallel architecture &programming
Parallel architecture &programmingParallel architecture &programming
Parallel architecture &programming
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offs
 
parallel-processing.ppt
parallel-processing.pptparallel-processing.ppt
parallel-processing.ppt
 
MPI n OpenMP
MPI n OpenMPMPI n OpenMP
MPI n OpenMP
 
Thread
ThreadThread
Thread
 
Thread
ThreadThread
Thread
 
18 parallel processing
18 parallel processing18 parallel processing
18 parallel processing
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxPPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
 

More from Bharathi Lakshmi Pon

More from Bharathi Lakshmi Pon (13)

Knowing about Computer SS.pptx
Knowing about Computer SS.pptxKnowing about Computer SS.pptx
Knowing about Computer SS.pptx
 
parallelcomputing-webminar.ppsx
parallelcomputing-webminar.ppsxparallelcomputing-webminar.ppsx
parallelcomputing-webminar.ppsx
 
iterativealgorithms.ppsx
iterativealgorithms.ppsxiterativealgorithms.ppsx
iterativealgorithms.ppsx
 
intensitytransformationspatialfiltering.ppsx
intensitytransformationspatialfiltering.ppsxintensitytransformationspatialfiltering.ppsx
intensitytransformationspatialfiltering.ppsx
 
mapem.ppsx
mapem.ppsxmapem.ppsx
mapem.ppsx
 
graphicsdesigning-intro.ppsx
graphicsdesigning-intro.ppsxgraphicsdesigning-intro.ppsx
graphicsdesigning-intro.ppsx
 
intensitytransformation.ppsx
intensitytransformation.ppsxintensitytransformation.ppsx
intensitytransformation.ppsx
 
PSNR based Optimization using statistical algorithm.ppsx
PSNR based Optimization using statistical algorithm.ppsxPSNR based Optimization using statistical algorithm.ppsx
PSNR based Optimization using statistical algorithm.ppsx
 
dipslideshare.ppsx
dipslideshare.ppsxdipslideshare.ppsx
dipslideshare.ppsx
 
matrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsxmatrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsx
 
webdesigning.ppsx
webdesigning.ppsxwebdesigning.ppsx
webdesigning.ppsx
 
classtimetable.ppsx
classtimetable.ppsxclasstimetable.ppsx
classtimetable.ppsx
 
Intensity Transformation and Spatial Filtering
Intensity Transformation and Spatial FilteringIntensity Transformation and Spatial Filtering
Intensity Transformation and Spatial Filtering
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 

Sequential consistency model

  • 1. SEQUENTIAL CONSISTENCY MODEL Mrs.A.Bharathi Lakshmi, Assistant Professor & Head, V.V.Vanniaperumal College For Women, Virudhunagar.
  • 2. Consistency Models Types: • Strict Consistency Model • Sequential Consistency Model • Causal Consistency Model • Pipelined Random Access Memory Consistency Model • Processor Consistency Model • Weak Consistency Model • Release Consistency Model
  • 3. Strict Consistency Model • Strongest Form of Memory Coherence • Value returned by read = Value written by write • All writes become visible instantaneously • Implementation requires absolute global time • Absolute synchronization of clock is not possible • Implementation is practically impossible • The ordering of operation is not changeable.
  • 4. Sequential Consistency Model • Proposed by Lamport [1979] • All processes in same order support this model • Exact order of access operations are interleaved does not matter • If the three operations read(r1), write(w1), read(r2) are performed in that order • (r1, w1, r2), (r1, r2, w1), (w1, r1, r2), (w1, r2, r1), (r2, r1, w1), (r2, w1, r1) any of the ordereing is acceptable • Consistency requirement is weak compared to Strict model • Provide One Copy/ Single Copy semantics • Accepted by most of the applications
  • 5. Causal Consistency Model • Proposed by Hutto and Ahamad (1990) • All processes see memory reference operations in correct order that are potentially causally related • Memory Operation not related can be seen by different processes • Memory reference operation is related to another memory reference operation if one might have been influenced by the other • Maintaining dependency graphs for memory access operations
  • 6. Pipelined Random Access Memory Consistency Model • Proposed by Lipton and Sandberg (1988) • Provides a weaker consistency semantics than the consistency model • Ensures that all write operations performed by a single process are seen by all other processes in the order they performed • All write operations performed by a single process are in a pipeline • Write operations performed by different processes can be seen by different processes in different order • Simple and easy to implement and also has good performance • PRAM consistency all processes do not agree on the same order of memory reference operations
  • 7. Processor Consistency Model • Proposed by Goodman [1989] • Very similar to PRAM model with additional restriction of memory coherence • Memory coherence - for any memory location all processes agree on the same order of all write operations performed on the same memory location
  • 8. Weak Consistency Model • Proposed by Dubois [1988] • Common characteristics • It is not necessary to show the change in memory done by every write operation to other processes • Isolated accesses to shared variable are rare • Better performance can be achieved on a group of memory reference operations • uses a special variable called a synchronization variable • All accesses to synchronization variables must obey sequential consistency semantics • Write operations must be completed before an access to a synchronization variable • All previous accesses to synchronization variables must be completed before access to a non- synchronization variable
  • 9. Release Consistency Model (Contd…) • Requirement to Implement • All accesses to acquire and release synchronization variable obey processor consistency semantics • All previous acquires perform by a process must be completed successfully before the process is allowed to perform a data access operation on the memory • All previous data access operations performed by a process must be completed successfully before a release access done by the process is allowed
  • 10. Implementing Sequential Consistency Model • Most commonly used model • Protocols depends on Replication and Migration of data blocks • Strategies • Nonreplicated, Nonmigrating blocks (NRNMB) • Nonreplicated, migrating blocks (NRMB) • Replicated, migrating blocks (RMB) • Replicated, Nonmigrating blocks (RNMB)
  • 11. NRNMB Strategy • Simplest Strategy • Each block has a single copy whose location is fixed
  • 12. • Enforcing sequential consistency is simple • Drawback • Serializing data access creates a bottleneck • Parallelism is not possible • Data Location • There is a single copy of each block in the entire system • The location of a block never changes • Hence use Mapping Function NRNMB Strategy (Contd…)
  • 13. NRMB Strategy • Each block of the shared memory has a single copy • Only the processes executing on one node can read or write a given data item at any one time
  • 14. NRMB Strategy (contd…) • Advantage • No communication Cost • Data Access Locality • Drawback • Thrashing Occurs • Parallelism is not possible
  • 15. NRMB Strategy (contd…) • Data Location • Broadcasting • Centralized Server algorithm • Fixed Distributed Server algorithm • Dynamic Distributed Server algorithm
  • 16. NRMB Strategy (contd…) • Broadcasting • Each node maintains an owned blocks table that contains an entry for each block for which the node is the current owner
  • 17. NRMB Strategy (contd…) • Centralized Server Algorithm • A centralized server maintains a block table that contains the location information for all block in the shared memory space • Drawbacks • A centralized server serializes location queries, reducing parallelism • The failure of the centralized server will cause the DSM system to stop functioning
  • 19. NRMB Strategy (contd…) • Fixed Distributed Server algorithm • Extension of the centralized server scheme • It overcomes the drawbacks of the centralized server scheme by distributing the role of the centralized server • Whenever a fault occurs, the mapping functions is used by the fault handler of the faulting node to find out the node whose block manager is mapping the currently accessed block
  • 21. NRMB Strategy (contd…) • Dynamic Distributed Server algorithm • Does not use any block manager • Each node has a block table that contains the ownership information for all block • A field gives a hint on the location of the owner of a block – probable owner • When fault occurs, the faulting node extracts the node information
  • 23. RMB Strategy • Parallelism is possible • DSM replicates blocks to increase parallelism • Replication  cost of write operation • Protocols • Write Invalidate • Write Update
  • 24. RMB Strategy (contd…) • Write Invalidate
  • 26. RMB Strategy (contd…) • Data Location • Broadcasting • Centralized Server algorithm • Fixed Distributed Server algorithm • Dynamic Distributed Server algorithm
  • 28. RMB Strategy (contd…) • Centralized Server algorithm
  • 29. RMB Strategy (contd…) • Fixed Distributed Server algorithm
  • 30. RMB Strategy (Contd…) • Dynamic Distributed Server algorithm
  • 31. RNMB Strategy (Contd…) • Can be replicated at multiple nodes • Location of each replica is fixed • Replicas are kept consistent • Updating them in all cases • Sequential consistency is ensured by global sequencer
  • 32. RNMB Strategy • Data Location • The replica location of a block never change • All replicas of a data block are kept consistent • Only a read request can be directly send to one of the node having a replica.