• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

time sync

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone! I do have a problem regarding time synchronization. The problem is given n clocks c1, c2, ..., cn, with respective time readings t1, t2, ..., tn, the theoretical solution to the time synchronization problem is when the n clocks provide only one exact time t0 at any given time. However, due to the variabilities inherrent to the n clocks, we can accept a practical solution of an average time t0 with a variance σ. The variance could be set to the desired resolution, e.g., 1ms. Given the above scenario, the Berkeley algorithm provides a way to compute for the average time t0 using the different time readings t1, t2, ..., tn. That is simply, t0 = (t1 + t2 + ...+ tn) × n-1. Given the situation how can i discover the node in the network and assign assume one node that it is the server where all the time will be sync to the other client node. Hope you can help me. Thanks a lot.


 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wouldn't it be simpler to just use the NTP implementation of the operating system to sync with a predetermined set of clock sources?
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and, Welcome to the Ranch!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic