TEXT 28
Parallel & Distributed Computing Class 5 Guest on 25th October 2022 02:56:10 PM
  1. Clock Synchronization Logically
  2. t1, t2
  3. if the time is greater, this will be selected
  4.  
  5. Max (local time, send time) + 1
  6.  
  7. Vector Clock
  8.  
  9. V[i] = V[i] + d (where d>0)
  10.  
  11. Berkeley’s Algorithm
  12.  
  13. In this algorithm, let
  14.  
  15.  
  16. 40 / 4 = 10
  17.  
  18. 3:10
  19.  
  20. Main server time: 3:00
  21.  
  22. Host 1 time: 3:20, Host 2 time: 3:40, Host 3 time: 2:40
  23.  
  24. Calculate Average:
  25.  
  26. (20 + 40 + 40 + 0) / 4 = 10
  27.  
  28. So now the server time is adjusted to: 3:10
  29.  
  30. Now Add/Minus the host time for adjusting it to server time
  31.  
  32. Host 1 3:20 - 10
  33. Host 2 3:40 - 30
  34. Host 3 2:40 + 30
  35.  
  36. Cristian's Algorithm:
  37.  
  38. Records the request and response time
  39. If there is a delay, such as an interrupt, it can be added into the total time taken
  40.  
  41. Estimated d = (T1 - T0)/2
  42. If I is known, d = (T1-T0-i)/2
  43. I is interrupt

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.