Unit II 2 Marks With Answer
Unit II 2 Marks With Answer
UNIT-2
PART-A
The order of delivery of messages in a distributed system is an important aspect of system executions
because it determines the messaging behavior that can be expected by the distributed program.
Several orderings on messages have been defined: (i) non-FIFO, (ii) FIFO, (iii) causal order, and (iv)
synchronous order.
An A-execution (E,≺) is an RSC execution if and only if there exists a non-separated linear extension of the partial
order (E,≺)
3. What is non-separated linear extension?
A non-separated linear extension of (E,≺) is a linear extension of (E,≺) such that for each pair (s, r) ∈ T, the
interval {x ∈ E | s ≺ x ≺ r } is empty.
4. Compare closed group and open group algorithm.
Prepared by Elavarasi D,
AP/CSE, MZCET
2|Page
A message broadcast is the sending of a message to all members in the distributed system. The
notion
of a system can be confined only to those sites/processes participating in the joint application.
7. Define time stamp.
A timestamp is the current time of an event that is recorded by a computer. The timestamp
mechanism is used for a wide variety of synchronization purposes, such as assigning a sequence
order for a multi-event transaction so that if a failure occurs the transaction can be voided.
12. List and define the criteria that must be met by a causal ordering protocol.
The following two criteria must be met by a causal ordering protocol:
Safety: In order to prevent causal order from being violated, a message M that arrives at a process
may need to be buffered until all system wide messages sent in the causal past of the send(M) event
to that same destination have already arrived.
Liveness: A message that arrives at a process must eventually be delivered to the process.
13. What are the necessary conditions to satisfy the consistent global state?
In this consistent global state, for any two local states si and sj at Pi and Pj , respectively, the following
must hold: (mutually concurrent) ∀I,∀j, si≺ sj ∧ sj≺ si_
Prepared by Elavarasi D,
AP/CSE, MZCET
3|Page
A cut is a line joining an arbitrary point on each process line that slices the space–time diagram into a
PAST and a FUTURE.
A consistent global state corresponds to a cut in which every message received in the PAST of the cut
has been sent in the PAST of that cut. Such a cut is known as a consistent cut.
A process initiates snapshot collection by executing the marker sending rule by which it records its local
state and sends a marker on each outgoing channel.
Prepared by Elavarasi D,
AP/CSE, MZCET