You want to set your computer's clock to be synchronized with the clock of a distant server.
You communicate with the server by sending packets (messages) the time it takes for a packet to travel from your computer to the server is t1 which is consistent(but unknown) and the time it takes from the server to your computer is t2 also consistent and unknown, t1 isn't necessarily equal to t2.
Assuming you can write any code you want on your computer and the server, can you think of a way to synchronize your clocks?
Question
Anza Power
You want to set your computer's clock to be synchronized with the clock of a distant server.
You communicate with the server by sending packets (messages) the time it takes for a packet to travel from your computer to the server is t1 which is consistent(but unknown) and the time it takes from the server to your computer is t2 also consistent and unknown, t1 isn't necessarily equal to t2.
Assuming you can write any code you want on your computer and the server, can you think of a way to synchronize your clocks?
Edited by Anza PowerLink to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.