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
Post a Comment