linux - Synchronized calls across different computers -


i have 3 linux boxes, each running program.

the program needs call callback @ regular intervals, , each call must happen @ exact same time across 3 boxes. don't need other synchronization except calls.

if helps, 3 boxes have clocks synchronized ntp (one of boxes master).

is there way accomplish precision? preferably non linux specific. make things simple, callback must called each n ms if previous call hasn't completed yet.

how send request execute function far enough ahead of time including timestamp when function should executed? receiving application sleep/wait remaining time (some time lost due latency), execute function @ precise timestamp requested.

if called function takes longer interval, should consider using threads. if function executes transfer of results takes longer should away select() without additional threads.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -