Untitled

 avatar
unknown
plain_text
2 years ago
311 B
8
Indexable
class reliable_broadcast:
    list = []
	
	def R-broadcast(G,m):
		m.processid = self.processid
		broadcast(G, m):


    def R-deliver():
        m = receive()
        if m not in list:
            if m.processid != self.processid:
                list.append(m)
                R-broadcast(G, m)
				deliver(m)
Editor is loading...
Leave a Comment