Synchronization Algorithm of node i - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

Synchronization Algorithm of node i

Description:

Synchronization Algorithm of node i. int clocks[n]; message m; while(true) ... else. clocks[i] unless this operation makes Pi unsynchronized; sleep(1) ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 2
Provided by: ziv3
Category:

less

Transcript and Presenter's Notes

Title: Synchronization Algorithm of node i


1
Synchronization Algorithm of node i
  • int clocksn
  • message m
  • while(true)
  • send clocksi to all neighbors
  • int size mailbox.size()
  • for (int u 0 u lt size u)
  • m mailboxu from neighbor j
  • If (m is a clock value message)
  • clocksj m.clocks
  • else
  • handle message m
  • if (Pi is not synchronized)
  • clocksi max(clocks)
  • else
  • clocksi unless this operation makes Pi
    unsynchronized
  • sleep(1)
Write a Comment
User Comments (0)
About PowerShow.com