🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.logic
Article #193

Re: Synchonizing watches

#193
From: David Petry
Date: Fri, 04 Sep 1992 19:24
49 lines
2529 bytes
In article <1992Sep3.172632.10776@hubcap.clemson.edu> fpst@hubcap.clemson.edu (Steve Stevenson) writes:

>I posted this problem to my news group, comp.parallel. Here are two
>solutions I've received.  ...

>----------------------------------------------------------------------------
>- A Solution -
>----------------------------------------------------------------------------
>Let the local time of A be tA, and the local time of B be tB.
>Further, let tAB be the lag between messages going from A to B,
>and let tBA be the symmetric value. Since both time pieces
>are presumable ticking at the same rate, let tB = tA + C for some
>constant C. If we can determine C, then they can synchronize their
>watches.
>
>1) A asks B the time. As s/he does, s/he notes how long it
>   takes to hear the response from B. If B answers promptly, 
>   A will now know 3 things:
>      (tA)                 (local time)
>      (tAB + tBA)          (total delay)
>      (tA + C + tAB)       (time told to A by B)

TRUE

>2) A subtracts the last value from the first two:
>      (tA) + (tAB + tBA) - (tA + C + tAB) = (tBA - C)

TRUE

>3) B now asks A the time. A hears the request at time
>   tA', notes this time and responds. B now knows:
>      (tA' + tBA)          (time told to B by A)

NO.  A tells B  tA' only, not tA' + tBA.

The  synchroniztation problem can not be solved.  It's easy to see that A and 
B can synchronize their watches in the sense that whenever A sends a message,
A will know what time B will think it is when B receives the message, and
for every message A receives, A will know what time B thought it was when
B sent it, and vice-versa, but  that's as close as they can come to having
synchronized watches.

They can NOT synchronize their watches in the sense that a third person who
is in instant communication with each of them will see that A's watch and
B's watch read the same.



David Petry
Technical Details
Message-ID: <1992Sep4.192408.24860@u.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!pythagoras.math.washington.edu!petry
References: <1992Sep1.234452.26917@tvnews.tv.tek.com> <1992Sep3.172632.10776@hubcap.clemson.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!pythagoras.math.washington.edu!petry
From: petry@pythagoras.math.washington.edu (David Petry)
Newsgroups: sci.logic
Subject: Re: Synchonizing watches
Message-ID: <1992Sep4.192408.24860@u.washington.edu>
Date: 4 Sep 92 19:24:08 GMT
Article-I.D.: u.1992Sep4.192408.24860
References: <1992Sep1.234452.26917@tvnews.tv.tek.com> <1992Sep3.172632.10776@hubcap.clemson.edu>
Sender: news@u.washington.edu (USENET News System)
Distribution: usa
Organization: University of Washington, Mathematics, Seattle
Lines: 49