Dos Tae2
Dos Tae2
DOS TAE 2
Report On Nptel Lecture On Distributed Operating System
Lamport’s Algorithm
Maekawa’s Algorithm
•Permission obtained from only a subset of other processes, called the Request SetRequest Set(or
(Quorum)
•Separate Request Set, Ri, for each process , i
•Requirements:
––for all i, j: Ri∩ Rj≠ Φ
––for all I, iЄ Ri–
–for all i: |Ri| = K, for some , K
–any node I is contained in exactly is D Request Sets, for some Request D,K=D=sqrt(N)
•To request critical section:
– i sends REQUEST message to all process in Ri
•On receiving a REQUEST message:
– Send a REPLY message if no REPLY message has sent since the last RELEASE message is
received.
– Update status to indicate that a REPLY has been se
– Otherwise, queue up the REQUEST
• To enter critical section:
– i enters critical section after receiving REPLY from nodes in Ri
•Issues:
– Current versus outdated requests
– Determining sites with pending requests
– Deciding which site to give the token to
• The token:
– Queue (FIFO) Q of requesting processes
– LN[1..n] : sequence number of request that j execut recently
•No. of messages:
– 0 if node holds the token already, n otherwise
•Synchronization delay:
– 0 (node has the token) or max. message delay (toke elsewhere)
•No starvation
Submitted By:
Nidhi Laddha(08)