SlideShare a Scribd company logo
1 of 23
Download to read offline
Parallel and distributed
computing
OUTLINE
Consistency Model
Consistency Model
Example:
• Assume that the following case occurs:
• The row X is replicated on nodes M and N
• The client A writes row X to node M
• After a period of time t, client B reads row X from node N
• The consistency model determines whether client B will
definitely see the write performed by client A, will definitely
not, or cannot depend on seeing the write.
Conflicting operations
• Read-write conflict: a read operation and a write operation act
concurrently
• Write-Write conflict: two concurrent write operation
Reasons for replication
Two primary reasons for replicating data
reliability and performance
However there is price to be paid when data is replicated
The problem is with replication that having multiple
copies may lead to consistency model i.e. when copy is
modified that copy becomes difference from the rest
Reasons for replication
Therefore modifications have to be caried out on all
copies to ensure consistency.
Exactly how and when those modifications need to
be carried out determines the price of replication.
Consistency Model
• Provides formal view of how memory system will appears to programmer
• Eliminates the gap between the behavior expected by the programmer
and actual behavior supported by the system
• It is used for contract between software and memory
• It says that if the software agrees to obey certain rule then the memory
promise to work properly
• Memory consistence model for shared address space specifies that in
which memory operations must appear to be performed i.e. visible to
processors with respect to one other.
Consistency Model
Consistency is different from coherence.
Coherence deals with maintaining a global order in
which writes to a single location or single variable are
seen by all processors i.e. how memory accesses are
coordinated among CPUs.
Consistency deals with the ordering of operations to
multiple locations with respect to all processors. i.e. when
memory writes shows up at another CPU.
Consistency Model
Consistency models define rules for the apparent order
and visibility of updates. There are two methods to
define and a categorize consistency models
1. issue: describes the restrictions that define how a
process can issue operations
2. View: defines the order of operations visible to
processes.
Consistency Model
•Consistency Model:
•Data Centric Consistency Model
•Client Centric Consistency Model
Consistency Models
1. Strict Consistency Model
2. Sequential Consistency Model
3. Causal Consistency Model
4. PRAM and Processor
5. Weak Consistency Model
6. Eventual Consistency Model
7. Release Consistency Model
Strict Consistency Model
1. It Is most strongest consistency model, i.e. model of rules
2. A write to a variable by any processor needs to be seen
instantaneously by all processors.
3. It is defined by following conditions
4. Any read to memory location x returns the value stored by the most
recent write operation of x
5. Disadvantage: number of messages increase between processors, as
single write operation may need to update on all processors
6. We can’t implement this model in all scenario.
7. It doesn't help in answering the question of conflict resolution in
concurrent writes to the same data item, because it assumes
concurrent writes to be impossible
Sequential Consistency Model
1. It is weaker memory model than strict consistency
model.
2. It is the most intuitive (with out conscious) model
greatly restrict the use of the many performance,
optimization used by the uniprocessor hardware and
compiler designers
3. Results of any execution is same as if the operations of
all the processors were executed in some sequential
order and the operations of each individual process
appears in the sequence in order specified by its
program
Sequential Consistency Model
1. Note that this rule says nothing about what order the
events happen in
2. Just that happen in some order
3. All instructions are executed atomically and there are no
recording between memory instructions
4. This is simple model however performance can’t be at
its best
5. One difficulty to bring all operations execute in
sequential order.
Sequential vs strict Consistency model
Causal consistency model
1. It represents a weaking of sequential consistency
2. It makes a distinguish between events that are
potentially causally related to and those are not.
3. Condition: writes that are potentially causally
related must be seen by all processing the same
order.
4. Operations are said to related to another if one
might have bee influenced by other operations
5. Operations that are not causally related are said to
be concurrent.
Causal Consistency Model
Weak consistency model
1. Not necessary to show the change in memory done by
every write operations to other processes. E.g. when a
process executes in a critical sections.
2. Process to synchronization variables are sequentially
consistent
3. No access to a synchronization variable allowed to
perform until all previous writes are complete every
where.
4. No data access write/read is allowed to be performed
until all process synchronize variables has been
performed
Eventual Consistency Model
• Based on client centric Model
• Many system: one or few processes perform updates, how frequently
these updates be made available to other read-only process.
• Examples: NIS (News information service), user information database,
only system admin update database, users only read data.
• Only naming authority allowed updates (hence no write-write
conflicts)
Monotonic Reads
• If a process reads the value of a data item x, any successive read
operation on x by that process will always return that same value or a
more recent value.
• Once read, subsequent reads on that data items return same or more
recent values.
• Example: Each time you connect to a different email server, the
server fletches all the updates form the server you previously visited.
• Example: automatically reading you personal calendar updates from
different servers. Monotonic reads guarantees that the user see all
updates, no matter from which server the automatic reading takes
place.
Monotonic Write
A write operation by a process on a data item x is completed
before any successive write operation on x by the same
process.
a write must be propagated to all replicas before a successive
write by the same process
Example: Updating a program at server S2, And ensuring that
all components on which compilation and linking depends are
also placed at S2.
Example: maintaining versions of replicated files in the correct
order everywhere (Propagate the previous version to the
server where the newest version is installed)
PRAM (Pipelined RAM) consistency model
1. Weaker consistency model so for
2. Only write operations is considers
3. Writes done by a single processor are received by all the
other processors in the order in which they were issued
4. Writes generates by different processors are concurrent.
5. Write operations performed by single process are in
pipelined
6. Simple and easy to implement
7. Also called as FIFO Consistency Model
Released Consistency Model
1. Enhancement of weak consistency model. In which
operations are performed in a synchronized way.
2. Use of two synchronization variables
a) Acquire(use to tell system is entering)
b) Release(use to tell system is just exited)

More Related Content

Similar to Parallel and Distributed Computing Chapter 6

Chapter Introductionn to distributed system .pptx
Chapter Introductionn to distributed system .pptxChapter Introductionn to distributed system .pptx
Chapter Introductionn to distributed system .pptxTekle12
 
This is introduction to distributed systems for the revised curiculum
This is introduction to distributed systems for the revised curiculumThis is introduction to distributed systems for the revised curiculum
This is introduction to distributed systems for the revised curiculummeharikiros2
 
Process synchronizationfinal
Process synchronizationfinalProcess synchronizationfinal
Process synchronizationfinalmarangburu42
 
DC_M5_L2_Data Centric Consistency (1).pdf
DC_M5_L2_Data Centric Consistency (1).pdfDC_M5_L2_Data Centric Consistency (1).pdf
DC_M5_L2_Data Centric Consistency (1).pdfDhruvSingh266810
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521marangburu42
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521marangburu42
 
Lec 4 (program and network properties)
Lec 4 (program and network properties)Lec 4 (program and network properties)
Lec 4 (program and network properties)Sudarshan Mondal
 
Cs556 section2
Cs556 section2Cs556 section2
Cs556 section2farshad33
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521marangburu42
 
Week # 1.pdf
Week # 1.pdfWeek # 1.pdf
Week # 1.pdfgiddy5
 
Concurrency Programming in Java - 01 - Introduction to Concurrency Programming
Concurrency Programming in Java - 01 - Introduction to Concurrency ProgrammingConcurrency Programming in Java - 01 - Introduction to Concurrency Programming
Concurrency Programming in Java - 01 - Introduction to Concurrency ProgrammingSachintha Gunasena
 
Thread scheduling...................pptx
Thread scheduling...................pptxThread scheduling...................pptx
Thread scheduling...................pptxarahanthavarma4
 
Data Parallel and Object Oriented Model
Data Parallel and Object Oriented ModelData Parallel and Object Oriented Model
Data Parallel and Object Oriented ModelNikhil Sharma
 

Similar to Parallel and Distributed Computing Chapter 6 (20)

Chapter Introductionn to distributed system .pptx
Chapter Introductionn to distributed system .pptxChapter Introductionn to distributed system .pptx
Chapter Introductionn to distributed system .pptx
 
This is introduction to distributed systems for the revised curiculum
This is introduction to distributed systems for the revised curiculumThis is introduction to distributed systems for the revised curiculum
This is introduction to distributed systems for the revised curiculum
 
chen-06.ppt
chen-06.pptchen-06.ppt
chen-06.ppt
 
Process synchronizationfinal
Process synchronizationfinalProcess synchronizationfinal
Process synchronizationfinal
 
DC_M5_L2_Data Centric Consistency (1).pdf
DC_M5_L2_Data Centric Consistency (1).pdfDC_M5_L2_Data Centric Consistency (1).pdf
DC_M5_L2_Data Centric Consistency (1).pdf
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521
 
Lec 4 (program and network properties)
Lec 4 (program and network properties)Lec 4 (program and network properties)
Lec 4 (program and network properties)
 
Cs556 section2
Cs556 section2Cs556 section2
Cs556 section2
 
Cc module 3.pptx
Cc module 3.pptxCc module 3.pptx
Cc module 3.pptx
 
Processscheduling 161001112521
Processscheduling 161001112521Processscheduling 161001112521
Processscheduling 161001112521
 
1844 1849
1844 18491844 1849
1844 1849
 
1844 1849
1844 18491844 1849
1844 1849
 
Real-Time Design Patterns
Real-Time Design PatternsReal-Time Design Patterns
Real-Time Design Patterns
 
Week # 1.pdf
Week # 1.pdfWeek # 1.pdf
Week # 1.pdf
 
Concurrency Programming in Java - 01 - Introduction to Concurrency Programming
Concurrency Programming in Java - 01 - Introduction to Concurrency ProgrammingConcurrency Programming in Java - 01 - Introduction to Concurrency Programming
Concurrency Programming in Java - 01 - Introduction to Concurrency Programming
 
Lecture1
Lecture1Lecture1
Lecture1
 
Thread scheduling...................pptx
Thread scheduling...................pptxThread scheduling...................pptx
Thread scheduling...................pptx
 
Data Parallel and Object Oriented Model
Data Parallel and Object Oriented ModelData Parallel and Object Oriented Model
Data Parallel and Object Oriented Model
 
Hbase hive pig
Hbase hive pigHbase hive pig
Hbase hive pig
 

More from AbdullahMunir32

Mobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdfMobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdfAbdullahMunir32
 
Mobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfMobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfAbdullahMunir32
 
Mobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdfMobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdfAbdullahMunir32
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfAbdullahMunir32
 
Mobile Application Development -Lecture 07 & 08.pdf
Mobile Application Development -Lecture 07 & 08.pdfMobile Application Development -Lecture 07 & 08.pdf
Mobile Application Development -Lecture 07 & 08.pdfAbdullahMunir32
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfAbdullahMunir32
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfAbdullahMunir32
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfAbdullahMunir32
 
Parallel and Distributed Computing Chapter 13
Parallel and Distributed Computing Chapter 13Parallel and Distributed Computing Chapter 13
Parallel and Distributed Computing Chapter 13AbdullahMunir32
 
Parallel and Distributed Computing Chapter 12
Parallel and Distributed Computing Chapter 12Parallel and Distributed Computing Chapter 12
Parallel and Distributed Computing Chapter 12AbdullahMunir32
 
Parallel and Distributed Computing Chapter 11
Parallel and Distributed Computing Chapter 11Parallel and Distributed Computing Chapter 11
Parallel and Distributed Computing Chapter 11AbdullahMunir32
 
Parallel and Distributed Computing Chapter 10
Parallel and Distributed Computing Chapter 10Parallel and Distributed Computing Chapter 10
Parallel and Distributed Computing Chapter 10AbdullahMunir32
 
Parallel and Distributed Computing Chapter 9
Parallel and Distributed Computing Chapter 9Parallel and Distributed Computing Chapter 9
Parallel and Distributed Computing Chapter 9AbdullahMunir32
 
Parallel and Distributed Computing Chapter 8
Parallel and Distributed Computing Chapter 8Parallel and Distributed Computing Chapter 8
Parallel and Distributed Computing Chapter 8AbdullahMunir32
 
Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7AbdullahMunir32
 
Parallel and Distributed Computing Chapter 5
Parallel and Distributed Computing Chapter 5Parallel and Distributed Computing Chapter 5
Parallel and Distributed Computing Chapter 5AbdullahMunir32
 
Parallel and Distributed Computing Chapter 4
Parallel and Distributed Computing Chapter 4Parallel and Distributed Computing Chapter 4
Parallel and Distributed Computing Chapter 4AbdullahMunir32
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3AbdullahMunir32
 
Parallel and Distributed Computing Chapter 2
Parallel and Distributed Computing Chapter 2Parallel and Distributed Computing Chapter 2
Parallel and Distributed Computing Chapter 2AbdullahMunir32
 
Parallel and Distributed Computing chapter 1
Parallel and Distributed Computing chapter 1Parallel and Distributed Computing chapter 1
Parallel and Distributed Computing chapter 1AbdullahMunir32
 

More from AbdullahMunir32 (20)

Mobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdfMobile Application Development-Lecture 15 & 16.pdf
Mobile Application Development-Lecture 15 & 16.pdf
 
Mobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfMobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdf
 
Mobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdfMobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdf
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdf
 
Mobile Application Development -Lecture 07 & 08.pdf
Mobile Application Development -Lecture 07 & 08.pdfMobile Application Development -Lecture 07 & 08.pdf
Mobile Application Development -Lecture 07 & 08.pdf
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdf
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdf
 
Parallel and Distributed Computing Chapter 13
Parallel and Distributed Computing Chapter 13Parallel and Distributed Computing Chapter 13
Parallel and Distributed Computing Chapter 13
 
Parallel and Distributed Computing Chapter 12
Parallel and Distributed Computing Chapter 12Parallel and Distributed Computing Chapter 12
Parallel and Distributed Computing Chapter 12
 
Parallel and Distributed Computing Chapter 11
Parallel and Distributed Computing Chapter 11Parallel and Distributed Computing Chapter 11
Parallel and Distributed Computing Chapter 11
 
Parallel and Distributed Computing Chapter 10
Parallel and Distributed Computing Chapter 10Parallel and Distributed Computing Chapter 10
Parallel and Distributed Computing Chapter 10
 
Parallel and Distributed Computing Chapter 9
Parallel and Distributed Computing Chapter 9Parallel and Distributed Computing Chapter 9
Parallel and Distributed Computing Chapter 9
 
Parallel and Distributed Computing Chapter 8
Parallel and Distributed Computing Chapter 8Parallel and Distributed Computing Chapter 8
Parallel and Distributed Computing Chapter 8
 
Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7
 
Parallel and Distributed Computing Chapter 5
Parallel and Distributed Computing Chapter 5Parallel and Distributed Computing Chapter 5
Parallel and Distributed Computing Chapter 5
 
Parallel and Distributed Computing Chapter 4
Parallel and Distributed Computing Chapter 4Parallel and Distributed Computing Chapter 4
Parallel and Distributed Computing Chapter 4
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3
 
Parallel and Distributed Computing Chapter 2
Parallel and Distributed Computing Chapter 2Parallel and Distributed Computing Chapter 2
Parallel and Distributed Computing Chapter 2
 
Parallel and Distributed Computing chapter 1
Parallel and Distributed Computing chapter 1Parallel and Distributed Computing chapter 1
Parallel and Distributed Computing chapter 1
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Parallel and Distributed Computing Chapter 6

  • 3. Consistency Model Example: • Assume that the following case occurs: • The row X is replicated on nodes M and N • The client A writes row X to node M • After a period of time t, client B reads row X from node N • The consistency model determines whether client B will definitely see the write performed by client A, will definitely not, or cannot depend on seeing the write.
  • 4. Conflicting operations • Read-write conflict: a read operation and a write operation act concurrently • Write-Write conflict: two concurrent write operation
  • 5. Reasons for replication Two primary reasons for replicating data reliability and performance However there is price to be paid when data is replicated The problem is with replication that having multiple copies may lead to consistency model i.e. when copy is modified that copy becomes difference from the rest
  • 6. Reasons for replication Therefore modifications have to be caried out on all copies to ensure consistency. Exactly how and when those modifications need to be carried out determines the price of replication.
  • 7. Consistency Model • Provides formal view of how memory system will appears to programmer • Eliminates the gap between the behavior expected by the programmer and actual behavior supported by the system • It is used for contract between software and memory • It says that if the software agrees to obey certain rule then the memory promise to work properly • Memory consistence model for shared address space specifies that in which memory operations must appear to be performed i.e. visible to processors with respect to one other.
  • 8. Consistency Model Consistency is different from coherence. Coherence deals with maintaining a global order in which writes to a single location or single variable are seen by all processors i.e. how memory accesses are coordinated among CPUs. Consistency deals with the ordering of operations to multiple locations with respect to all processors. i.e. when memory writes shows up at another CPU.
  • 9. Consistency Model Consistency models define rules for the apparent order and visibility of updates. There are two methods to define and a categorize consistency models 1. issue: describes the restrictions that define how a process can issue operations 2. View: defines the order of operations visible to processes.
  • 10. Consistency Model •Consistency Model: •Data Centric Consistency Model •Client Centric Consistency Model
  • 11. Consistency Models 1. Strict Consistency Model 2. Sequential Consistency Model 3. Causal Consistency Model 4. PRAM and Processor 5. Weak Consistency Model 6. Eventual Consistency Model 7. Release Consistency Model
  • 12. Strict Consistency Model 1. It Is most strongest consistency model, i.e. model of rules 2. A write to a variable by any processor needs to be seen instantaneously by all processors. 3. It is defined by following conditions 4. Any read to memory location x returns the value stored by the most recent write operation of x 5. Disadvantage: number of messages increase between processors, as single write operation may need to update on all processors 6. We can’t implement this model in all scenario. 7. It doesn't help in answering the question of conflict resolution in concurrent writes to the same data item, because it assumes concurrent writes to be impossible
  • 13. Sequential Consistency Model 1. It is weaker memory model than strict consistency model. 2. It is the most intuitive (with out conscious) model greatly restrict the use of the many performance, optimization used by the uniprocessor hardware and compiler designers 3. Results of any execution is same as if the operations of all the processors were executed in some sequential order and the operations of each individual process appears in the sequence in order specified by its program
  • 14. Sequential Consistency Model 1. Note that this rule says nothing about what order the events happen in 2. Just that happen in some order 3. All instructions are executed atomically and there are no recording between memory instructions 4. This is simple model however performance can’t be at its best 5. One difficulty to bring all operations execute in sequential order.
  • 15. Sequential vs strict Consistency model
  • 16. Causal consistency model 1. It represents a weaking of sequential consistency 2. It makes a distinguish between events that are potentially causally related to and those are not. 3. Condition: writes that are potentially causally related must be seen by all processing the same order. 4. Operations are said to related to another if one might have bee influenced by other operations 5. Operations that are not causally related are said to be concurrent.
  • 18. Weak consistency model 1. Not necessary to show the change in memory done by every write operations to other processes. E.g. when a process executes in a critical sections. 2. Process to synchronization variables are sequentially consistent 3. No access to a synchronization variable allowed to perform until all previous writes are complete every where. 4. No data access write/read is allowed to be performed until all process synchronize variables has been performed
  • 19. Eventual Consistency Model • Based on client centric Model • Many system: one or few processes perform updates, how frequently these updates be made available to other read-only process. • Examples: NIS (News information service), user information database, only system admin update database, users only read data. • Only naming authority allowed updates (hence no write-write conflicts)
  • 20. Monotonic Reads • If a process reads the value of a data item x, any successive read operation on x by that process will always return that same value or a more recent value. • Once read, subsequent reads on that data items return same or more recent values. • Example: Each time you connect to a different email server, the server fletches all the updates form the server you previously visited. • Example: automatically reading you personal calendar updates from different servers. Monotonic reads guarantees that the user see all updates, no matter from which server the automatic reading takes place.
  • 21. Monotonic Write A write operation by a process on a data item x is completed before any successive write operation on x by the same process. a write must be propagated to all replicas before a successive write by the same process Example: Updating a program at server S2, And ensuring that all components on which compilation and linking depends are also placed at S2. Example: maintaining versions of replicated files in the correct order everywhere (Propagate the previous version to the server where the newest version is installed)
  • 22. PRAM (Pipelined RAM) consistency model 1. Weaker consistency model so for 2. Only write operations is considers 3. Writes done by a single processor are received by all the other processors in the order in which they were issued 4. Writes generates by different processors are concurrent. 5. Write operations performed by single process are in pipelined 6. Simple and easy to implement 7. Also called as FIFO Consistency Model
  • 23. Released Consistency Model 1. Enhancement of weak consistency model. In which operations are performed in a synchronized way. 2. Use of two synchronization variables a) Acquire(use to tell system is entering) b) Release(use to tell system is just exited)