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

Evaluation of morden computer & system attributes in ACA
Evaluation of morden computer &  system attributes in ACAEvaluation of morden computer &  system attributes in ACA
Evaluation of morden computer & system attributes in ACA
Pankaj Kumar Jain
 
Chpt7
Chpt7Chpt7
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
Maulik Togadiya
 
Cache coherence
Cache coherenceCache coherence
Cache coherence
Priyam Pandey
 
Flynn's Classification .pptx
Flynn's Classification .pptxFlynn's Classification .pptx
Flynn's Classification .pptx
Nayan Gupta
 
Pram model
Pram modelPram model
Pram model
MANASYJAYASURYA
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
 
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
Pankaj Kumar Jain
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
mridul mishra
 
Physical and Logical Clocks
Physical and Logical ClocksPhysical and Logical Clocks
Physical and Logical Clocks
Dilum Bandara
 
advanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismadvanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelism
Pankaj Kumar Jain
 
Lecture 3 parallel programming platforms
Lecture 3   parallel programming platformsLecture 3   parallel programming platforms
Lecture 3 parallel programming platforms
Vajira Thambawita
 
Resource management
Resource managementResource management
Resource management
Dr Sandeep Kumar Poonia
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
vani261
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
Alagappa Govt Arts College, Karaikudi
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
Nilu Desai
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
Dr Sandeep Kumar Poonia
 
Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
Gyanmanjari Institute Of Technology
 
Hardware multithreading
Hardware multithreadingHardware multithreading
Hardware multithreading
Fraboni Ec
 
Distributed shared memory shyam soni
Distributed shared memory shyam soniDistributed shared memory shyam soni
Distributed shared memory shyam soni
Shyam Soni
 

What's hot (20)

Evaluation of morden computer & system attributes in ACA
Evaluation of morden computer &  system attributes in ACAEvaluation of morden computer &  system attributes in ACA
Evaluation of morden computer & system attributes in ACA
 
Chpt7
Chpt7Chpt7
Chpt7
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
 
Cache coherence
Cache coherenceCache coherence
Cache coherence
 
Flynn's Classification .pptx
Flynn's Classification .pptxFlynn's Classification .pptx
Flynn's Classification .pptx
 
Pram model
Pram modelPram model
Pram model
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
 
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
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
Physical and Logical Clocks
Physical and Logical ClocksPhysical and Logical Clocks
Physical and Logical Clocks
 
advanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismadvanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelism
 
Lecture 3 parallel programming platforms
Lecture 3   parallel programming platformsLecture 3   parallel programming platforms
Lecture 3 parallel programming platforms
 
Resource management
Resource managementResource management
Resource management
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
 
Hardware multithreading
Hardware multithreadingHardware multithreading
Hardware multithreading
 
Distributed shared memory shyam soni
Distributed shared memory shyam soniDistributed shared memory shyam soni
Distributed shared memory shyam soni
 

Similar to Sequential consistency model

Lecture4
Lecture4Lecture4
Lecture4
Asad Abbas
 
Parallel processing
Parallel processingParallel processing
Parallel processing
Syed Zaid Irshad
 
Lost with data consistency
Lost with data consistencyLost with data consistency
Lost with data consistency
Michał Gryglicki
 
Lecture6
Lecture6Lecture6
Lecture6
tt_aljobory
 
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
Aravind 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.pptx
FaizanSaleem81
 
Fault tolerant presentation
Fault tolerant presentationFault tolerant presentation
Fault tolerant presentation
skadyan1
 
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
aakarshsiwani1
 
Parallel processing
Parallel processingParallel processing
Parallel processing
Shivalik college of engineering
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
Shaveta Banda
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
unit 4.pptxunit 4.pptx
Parallel architecture &programming
Parallel architecture &programmingParallel architecture &programming
Parallel architecture &programming
Ismail El Gayar
 
Distributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offsDistributed RDBMS: Challenges, Solutions & Trade-offs
Distributed RDBMS: Challenges, Solutions & Trade-offs
Ahmed Magdy Ezzeldin, MSc.
 
parallel-processing.ppt
parallel-processing.pptparallel-processing.ppt
parallel-processing.ppt
MohammedAbdelgader2
 
MPI n OpenMP
MPI n OpenMPMPI n OpenMP
MPI n OpenMP
Surinder Kaur
 
Thread
ThreadThread
Thread
sajidhuseyin
 
Thread
ThreadThread
18 parallel processing
18 parallel processing18 parallel processing
18 parallel processing
dilip kumar
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
Mr SMAK
 

Similar to Sequential consistency model (20)

Lecture4
Lecture4Lecture4
Lecture4
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
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
 

More from Bharathi Lakshmi Pon

Knowing about Computer SS.pptx
Knowing about Computer SS.pptxKnowing about Computer SS.pptx
Knowing about Computer SS.pptx
Bharathi Lakshmi Pon
 
parallelcomputing-webminar.ppsx
parallelcomputing-webminar.ppsxparallelcomputing-webminar.ppsx
parallelcomputing-webminar.ppsx
Bharathi Lakshmi Pon
 
iterativealgorithms.ppsx
iterativealgorithms.ppsxiterativealgorithms.ppsx
iterativealgorithms.ppsx
Bharathi Lakshmi Pon
 
intensitytransformationspatialfiltering.ppsx
intensitytransformationspatialfiltering.ppsxintensitytransformationspatialfiltering.ppsx
intensitytransformationspatialfiltering.ppsx
Bharathi Lakshmi Pon
 
mapem.ppsx
mapem.ppsxmapem.ppsx
graphicsdesigning-intro.ppsx
graphicsdesigning-intro.ppsxgraphicsdesigning-intro.ppsx
graphicsdesigning-intro.ppsx
Bharathi Lakshmi Pon
 
intensitytransformation.ppsx
intensitytransformation.ppsxintensitytransformation.ppsx
intensitytransformation.ppsx
Bharathi Lakshmi Pon
 
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
Bharathi Lakshmi Pon
 
dipslideshare.ppsx
dipslideshare.ppsxdipslideshare.ppsx
dipslideshare.ppsx
Bharathi Lakshmi Pon
 
matrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsxmatrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsx
Bharathi Lakshmi Pon
 
webdesigning.ppsx
webdesigning.ppsxwebdesigning.ppsx
webdesigning.ppsx
Bharathi Lakshmi Pon
 
classtimetable.ppsx
classtimetable.ppsxclasstimetable.ppsx
classtimetable.ppsx
Bharathi Lakshmi Pon
 
Intensity Transformation and Spatial Filtering
Intensity Transformation and Spatial FilteringIntensity Transformation and Spatial Filtering
Intensity Transformation and Spatial Filtering
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

UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 

Recently uploaded (20)

UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 

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.