Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
311 B
4
Indexable
Never
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)
Leave a Comment