Consistency and Replication

Slides:



Advertisements
Similar presentations
COMP 655: Distributed/Operating Systems Summer 2011 Dr. Chunbo Chu Week 7: Consistency 4/13/20151Distributed Systems - COMP 655.
Advertisements

Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Replication. Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Consistency and Replication Chapter 7 Part II Replica Management & Consistency Protocols.
Consistency and Replication Chapter Introduction: replication and scalability 6.2 Data-Centric Consistency Models 6.3 Client-Centric Consistency.
Consistency and Replication Chapter Topics Reasons for Replication Models of Consistency –Data-centric consistency models: strict, linearizable,
Consistency and Replication
Consistency and Replication Chapter 6. Object Replication (1) Organization of a distributed remote object shared by two different clients.
Replication and Consistency Chapter 6. Data-Centric Consistency Models The general organization of a logical data store, physically distributed and replicated.
Consistency Models Based on Tanenbaum/van Steen’s “Distributed Systems”, Ch. 6, section 6.2.
Consistency and Replication. Replication of data Why? To enhance reliability To improve performance in a large scale system Replicas must be consistent.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
Distributed Systems Spring 2009
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
Consistency and Replication Chapter 6. Reasons for Replication Data replication is a common technique in distributed systems. There are two reasons for.
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Replication and Consistency CS-4513 D-term Replication and Consistency CS-4513 Distributed Computing Systems (Slides include materials from Operating.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Introduction Consistency models –Data-centric consistency models.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Client-Centric.
Consistency & Replication Chapter No. 6
1 6.4 Distribution Protocols Different ways of propagating/distributing updates to replicas, independent of the consistency model. First design issue.
Consistency and Replication Chapter Concepts Reasons for Replication Reliability Earthquake, flood Misoperation Performance Place copies of data.
Consistency and Replication CSCI 4780/6780. Chapter Outline Why replication? –Relations to reliability and scalability How to maintain consistency of.
Consistency and Replication
Consistency And Replication
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
ICS362 – Distributed Systems Dr. Ken Cosh Lecture 7.
Consistency and Replication Chapter 6. Release Consistency (1) A valid event sequence for release consistency. Use acquire/release operations to denote.
Consistency and Replication. Replication of data Why? To enhance reliability To improve performance in a large scale system Replicas must be consistent.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Outline Introduction (what’s it all about) Data-centric consistency Client-centric consistency Replica management Consistency protocols.
Consistency and Replication Distributed Software Systems.
Ch 10 Shared memory via message passing Problems –Explicit user action needed –Address spaces are distinct –Small Granularity of Transfer Distributed Shared.
第5讲 一致性与复制 §5.1 副本管理 Replica Management §5.2 一致性模型 Consistency Models
Consistency and Replication Chapter 6 Presenter: Yang Jie RTMM Lab Kyung Hee University.
Distributed Systems CS Consistency and Replication – Part IV Lecture 21, Nov 10, 2014 Mohammad Hammoud.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Distributed Systems Replication. Why Replication Replication is Maintenance of copies at multiple sites Enhancing Services by replicating data Performance.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Consistency and Replication Chapter 6. Topics Reasons for Replication Models of Consistency –Data-centric consistency models –Client-centric consistency.
Replication (1). Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Consistency and Replication. Outline Introduction (what’s it all about) Data-centric consistency Client-centric consistency Replica management Consistency.
Distributed Systems CS Consistency and Replication – Part IV Lecture 13, Oct 23, 2013 Mohammad Hammoud.
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT By Jyothsna Natarajan Instructor: Prof. Yanqing Zhang Course: Advanced Operating Systems.
Hwajung Lee.  Improves reliability  Improves availability ( What good is a reliable system if it is not available?)  Replication must be transparent.
Consistency and Replication Chapter 6 Presenter: Yang Jie RTMM Lab Kyung Hee University.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Consistency and Replication CSCI 6900/4900. FIFO Consistency Relaxes the constraints of the causal consistency “Writes done by a single process are seen.
OS2 –Sem 1, Rasool Jalili Consistency and Replication Chapter 6.
Consistency and Replication (1). Topics Why Replication? Consistency Models – How do we reason about the consistency of the “global state”? u Data-centric.
CS6320 – Performance L. Grewe.
Distributed Shared Memory
Consistency and Replication
Multiprocessor Cache Coherency
Consistency and Replication
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT -Sumanth Kandagatla Instructor: Prof. Yanqing Zhang Advanced Operating Systems (CSC 8320)
Consistency Models.
Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Replication Improves reliability Improves availability
Consistency and Replication
Distributed Systems CS
Ch 5 Replication and Consistency
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Distributed Systems CS
Replica Placement Model: We consider objects (and don’t worry whether they contain just data or code, or both) Distinguish different processes: A process.
Last Class: Web Caching
Consistency and Replication
Presentation transcript:

Consistency and Replication Chapter 6 OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Replication Important issue in DSs to enhance reliability and improve performance. The major problem is how to make replicas consistent. Much attention on consistency have been paid on consistency models of DSM systems by parallel computer designers. Issue: Client-Centric consistency Implementation of replication and distribution of updates. Models of consistency: Strong? How much? OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Object Replication (1) Organization of a distributed remote object shared by two different clients. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili The first problem is how to handle concurrent accesses to the remote object by two clients. 1- The object itself handles concurrent invocations 2- The server is responsible for concurrency control and the object is unprotected. The two scenarios in the next slide. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Object Replication (2) A remote object capable of handling concurrent invocations on its own. A remote object for which an object adapter is required to handle concurrent invocations OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Object Replication (3) A distributed system for replication-aware distributed objects. A distributed system responsible for replica management OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Replication Replication and Scaling Technology? Consistency is against scalability! Consistency Model is a contract between processes and the data store. OS2 –2nd Semester, 94-95 Rasool Jalili

Data-Centric Consistency Models The general organization of a logical data store, physically distributed and replicated across multiple processes. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Strict Consistency Any read on a data item X returns a value corresponding to the result of the most recent write on X Behavior of two processes, operating on the same data item. (a) A strictly consistent store. (b) A store that is not strictly consistent. OS2 –2nd Semester, 94-95 Rasool Jalili

Linearizability and Sequential Consistency (1) A sequentially consistent data store. A data store that is not sequentially consistent. OS2 –2nd Semester, 94-95 Rasool Jalili

Linearizability and Sequential Consistency (2) Process P1 Process P2 Process P3 x = 1; print ( y, z); y = 1; print (x, z); z = 1; print (x, y); Three concurrently executing processes. OS2 –2nd Semester, 94-95 Rasool Jalili

Linearizability and Sequential Consistency (3) Four valid execution sequences for the processes of the previous slide. The vertical axis is time. x = 1; print ((y, z); y = 1; print (x, z); z = 1; print (x, y); Prints: 001011 Signature: 001011 (a) print (x,z); print(y, z); Prints: 101011 Signature: 101011 (b) print (y, z); Prints: 010111 Signature: 110101 (c) Prints: 111111 111111 (d) 000000 or 001001 are impossible. If a DSM do not produce some valid patterns!! OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Casual Consistency (1) Necessary condition: Writes that are potentially casually related must be seen by all processes in the same order. Concurrent writes may be seen in a different order on different machines. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Casual Consistency (2) This sequence is allowed with a casually-consistent store, but not with sequentially or strictly consistent store. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Casual Consistency (3) A violation of a casually-consistent store. A correct sequence of events in a casually-consistent store. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili FIFO Consistency (1) Necessary Condition: Writes done by a single process are seen by all other processes in the order in which they were issued, but writes from different processes may be seen in a different order by different processes. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili FIFO Consistency (2) A valid sequence of events of FIFO consistency OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili FIFO Consistency (4) Process P1 Process P2 x = 1; if (y == 0) kill (P2); y = 1; if (x == 0) kill (P1); Two concurrent processes. Compare Sequential and FIFO consistency. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Weak Consistency (1) Properties: Accesses to synchronization variables associated with a data store are sequentially consistent No operation on a synchronization variable is allowed to be performed until all previous writes have been completed everywhere No read or write operation on data items are allowed to be performed until all previous operations to synchronization variables have been performed. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Weak Consistency (2) int a, b, c, d, e, x, y; /* variables */ int *p, *q; /* pointers */ int f( int *p, int *q); /* function prototype */ a = x * x; /* a stored in register */ b = y * y; /* b as well */ c = a*a*a + b*b + a * b; /* used later */ d = a * a * c; /* used later */ p = &a; /* p gets address of a */ q = &b /* q gets address of b */ e = f(p, q) /* function call */ A program fragment in which some variables may be kept in registers; a and b in registers, but when calling f, they should be synchronized. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Weak Consistency (3) A valid sequence of events for weak consistency. An invalid sequence for weak consistency. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Release Consistency Problem with Weak Consistency: Access to a synch variable might be because of finishing or starting of write operation on shared data items.  in all cases, it should propagates all recent writes around the system. A more efficient way is to separate entering and finishing of a critical region. Acquire and Release. The programmer is responsible to put them in its program Similar to lock and unlock. OS2 –2nd Semester, 94-95 Rasool Jalili

Release Consistency (1) A valid event sequence for release consistency. OS2 –2nd Semester, 94-95 Rasool Jalili

Release Consistency (2) Rules: Before a read or write operation on shared data is performed, all previous acquires done by the process must have completed successfully. Before a release is allowed to be performed, all previous reads and writes by the process must have completed Accesses to synchronization variables are FIFO consistent (sequential consistency is not required). OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Lazy or Eager Eager release consistency pushes the update on Release Lazy release consistency does not do anything on release. The process doing Acquire after that, updates its copies. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Entry Consistency (1) A valid event sequence for entry consistency. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Entry Consistency (2) Conditions: An acquire access of a synchronization variable is not allowed to perform with respect to a process until all updates to the guarded shared data have been performed with respect to that process. Before an exclusive mode access to a synchronization variable by a process is allowed to perform with respect to that process, no other process may hold the synchronization variable, not even in nonexclusive mode. After an exclusive mode access to a synchronization variable has been performed, any other process's next nonexclusive mode access to that synchronization variable may not be performed until it has performed with respect to that variable's owner. OS2 –2nd Semester, 94-95 Rasool Jalili

Summary of Consistency Models Consistency models not using synchronization operations. Models with synchronization operations. Consistency Description Strict Absolute time ordering of all shared accesses matters. Linearizability All processes must see all shared accesses in the same order. Accesses are furthermore ordered according to a (nonunique) global timestamp Sequential All processes see all shared accesses in the same order. Accesses are not ordered in time Causal All processes see causally-related shared accesses in the same order. FIFO All processes see writes from each other in the order they were used. Writes from different processes may not always be seen in that order (a) Weak Shared data can be counted on to be consistent only after a synchronization is done Release Shared data are made consistent when a critical region is exited Entry Shared data pertaining to a critical region are made consistent when a critical region is entered. (b) OS2 –2nd Semester, 94-95 Rasool Jalili

Client-Centric Consistency Previous discussion was concentrated on data items. Assuming read operations are much more than concurrent writes:: so we need even weaker consistency The level of concurrency and the level of requirement of being so consistent varies. The question is that: How fast updates should be made available to only-reading processes? Example: DNS, Web pages? These are able to tolerate a high degree of inconsistency. The base idea: If no updates take place for a long time, all replicas will gradually become consistent  Eventual consistency. Generally a small set of replicas do write and so write-write conflicts can be handled. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Eventual Consistency The problem of having mobile clients moving around and connect to different replicas!  Client-Centric Consistency. Guarantees consistency for a single client OS2 –2nd Semester, 94-95 Rasool Jalili

Client-Centric Consistency Assume each client access its nearest replica and does its read and write Updates are eventually propagated to the other copies. We can simplify the issue by considering an owner for each data item who has the authority on the data item. xi [t] means the version of x at Li at time t. WS(xi [t]) denotes the set of writes on x. 4 models of Client-Centric consistency as follows … OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Monotonic Reads (1) A data store is said to provide Monotonic Read consistency if: When a process reads a data item x, successive read operations of the same process on x always returns the same value or a more recent value. Example: Our mailbox, even when it is stored in a replicated and fully distributed around the world. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Monotonic Reads The read operations performed by a single process P at two different local copies of the same data store. A monotonic-read consistent data store A data store that does not provide monotonic reads. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Monotonic Writes(1) A write operation by a process on a data item x is completed before any successive write on x by the same process, no matter where the operation was initiated. Similar to the concept of FIFO consistency on data-centric approaches, but here we are restricted to a single process, not all concurrent processes. Ex: software library update OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Monotonic Writes The write operations performed by a single process P at two different local copies of the same data store A monotonic-write consistent data store. A data store that does not provide monotonic-write consistency. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Read Your Writes The effect of a write operation by a process on data item x will always be seen by a successive read op on x by the same process. Ex: Updating web page and seeing that ! OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Read Your Writes A data store that provides read-your-writes consistency. A data store that does not. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Writes Follow Reads A write operation by a process on a data item x following a previous read on x by the same process, is guaranteed to take place on the same or a more recent value of x that was read. Ex: Posting of a reaction on an article in newsgroups after seeing the original article. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Writes Follow Reads A writes-follow-reads consistent data store A data store that does not provide writes-follow-reads consistency OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Replicas Permanent replicas; number of them is limited. Mirroring is a form of permanent replicas Server initiated replicas Client-initiated replicas. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Replica Placement The logical organization of different kinds of copies of a data store into three concentric rings. OS2 –2nd Semester, 94-95 Rasool Jalili

Server initiated replicas Copies of data store exist to enhance performance; created at the initiative of the owner of the data store due to a burst traffic :: Push cache. Where and when replicas should be created and deleted? An approach to dynamically replicate files , designed for web-hosting :: updates are rare compare to read ops. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Two issues: Replication for reduction of load on a server Migration or replication of specific files to the server closer to the clients who issue many requests to those files. Each server keeps track of access counts per file and the location of the access. Each server can determine which server is closest to a given client C. When the number of req for a file at server S drops below a deletion threshold, it can be removed from S. Two thresholds: del (S, F), and rep (S, F) OS2 –2nd Semester, 94-95 Rasool Jalili

Server-Initiated Replicas Counting access requests from different clients. OS2 –2nd Semester, 94-95 Rasool Jalili

Client-initiated replicas Created at the initiative of clients Known as (client) caches. Cache hit Period of keeping data on caches OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Update Propagation Update normally initiated at the client side and subsequently forwarded to one of the copies.  update should be propagated toward other copies whilst maintaining consistency. Issues: What should be propagated: State or operations? Only a notification of an update :: invalidation Transfer data from one copy to another. Propagate the update op to other copies. Push updates or pull them? OS2 –2nd Semester, 94-95 Rasool Jalili

Pull versus Push Protocols Issue Push-based Pull-based State of server List of client replicas and caches None Messages sent Update (and possibly fetch update later) Poll and update Response time at client Immediate (or fetch-update time) Fetch-update time A comparison between push-based and pull-based protocols in the case of multiple client (each having their own cache), single server systems. OS2 –2nd Semester, 94-95 Rasool Jalili

Consistency Protocols So far, we concentrated on consistency models. A consistency protocol describes an implementation of a specific consistency model. Primary-Based protocols Client-server: all RW ops from a server (distributed or centralized) Primary-Backup protocols (Write operations toward the primary) OS2 –2nd Semester, 94-95 Rasool Jalili

Remote-Write Protocols (1) Primary-based remote-write protocol with a fixed server to which all read and write operations are forwarded. OS2 –2nd Semester, 94-95 Rasool Jalili

Remote-Write Protocols (2) The principle of primary-backup protocol. OS2 –2nd Semester, 94-95 Rasool Jalili

Local-Write Protocols Two kinds Only a single copy of each item exists: No replicas For each operation, a copy the data item is transferred to the process and the operation is done. Overhead of maintaining who is where! A variant is a primary-backup protocol in which the primary migrates between processes. OS2 –2nd Semester, 94-95 Rasool Jalili

Local-Write Protocols (1) Primary-based local-write protocol in which a single copy is migrated between processes. OS2 –2nd Semester, 94-95 Rasool Jalili

Local-Write Protocols (2) Primary-backup protocol in which the primary migrates to the process wanting to perform an update. OS2 –2nd Semester, 94-95 Rasool Jalili

Replicated Write Protocols Write operations can be carried out at multiple replicas. Active replication: an operation is forwarded to all replicas Majority voting OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Active Replication Each replica has an associated process that carries out update operations Operations need to be done in the same order everywhere  totally-ordered multicast is needed. A sequencer is needed somehow to send requests first to it and then to all replicas. The other problem is replicated invocation. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Active Replication (1) The problem of replicated invocations. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Active Replication (2) Forwarding an invocation request from a replicated object. Returning a reply to a replicated object. OS2 –2nd Semester, 94-95 Rasool Jalili

Quorum-Based Protocols Three examples of the voting algorithm: A correct choice of read and write set A choice that may lead to write-write conflicts A correct choice, known as ROWA (read one, write all) OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili Orca OBJECT IMPLEMENTATION stack; top: integer; # variable indicating the top stack: ARRAY[integer 0..N-1] OF integer # storage for the stack OPERATION push (item: integer) # function returning nothing BEGIN GUARD top < N DO stack [top] := item; # push item onto the stack top := top + 1; # increment the stack pointer OD; END; OPERATION pop():integer; # function returning an integer BEGIN GUARD top > 0 DO # suspend if the stack is empty top := top – 1; # decrement the stack pointer RETURN stack [top]; # return the top item OD; END; BEGIN top := 0; # initialization END; A simplified stack object in Orca, with internal data and two operations. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili ??? End of Chapter 6 OS2 –2nd Semester, 94-95 Rasool Jalili

Management of Shared Objects in Orca Four cases of a process P performing an operation on an object O in Orca. OS2 –2nd Semester, 94-95 Rasool Jalili

Casually-Consistent Lazy Replication The general organization of a distributed data store. Clients are assumed to also handle consistency-related communication. OS2 –2nd Semester, 94-95 Rasool Jalili

Processing Read Operations Performing a read operation at a local copy. OS2 –2nd Semester, 94-95 Rasool Jalili

Processing Write Operations Performing a write operation at a local copy. OS2 –2nd Semester, 94-95 Rasool Jalili

OS2 –2nd Semester, 94-95 Rasool Jalili FIFO Consistency (3) x = 1; print (y, z); y = 1; print(x, z); z = 1; print (x, y); Prints: 00 (a) print ( y, z); Prints: 10 (b) print (x, z); Prints: 01 (c) Statement execution as seen by the three processes from the previous slide. The statements in bold are the ones that generate the output shown. OS2 –2nd Semester, 94-95 Rasool Jalili