Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 09:44:05 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        current@freebsd.org
Subject:   Re: cynchronised sleep capbilty..
Message-ID:  <20050202094256.K88344@localhost>
In-Reply-To: <200502011913.j11JDXsf084862@khavrinen.lcs.mit.edu>
References:  <20050201101113.J572@localhost> <20050201190318.GE45608@cirb503493.alcatel.com.au> <200502011913.j11JDXsf084862@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
very clever!

however it doesn't phaselock to teh time and still drifts.
I need to trigger on (for example) 10 second boundaries across 50
synchronised machines..
(so thatthe machines agree about the sampling period.)


-- 
+------------------------------------+       ______ _  __
|   __--_|\  Julian Elischer         |       \     U \/ / hard at work in
|  /       \ julian@elischer.org     +------>x   USA    \ a very strange
| (   OZ    )                                \___   ___ | country !
+- X_.---._/    presently in San Francisco       \_/   \\
          v

On Tue, 1 Feb 2005, Garrett Wollman wrote:

> <<On Wed, 2 Feb 2005 06:03:18 +1100, Peter Jeremy <PeterJeremy@optushome.com.au> said:
>
> > 2) <kludge>Write a small C program that uses setitimer() and signals
> >    its parent whenever the timer triggers.  Run it in the background
> >    and just pause within the sh loop.</kludge>
>
> SIGCHLD is good enough.
>
> while :; do
> 	sleep 10 &
> 	do_something
> 	wait
> done
>
> -GAWollman
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050202094256.K88344>