Re: cynchronised sleep capbilty..

From: Julian Elischer <julian_at_elischer.org>
Date: Wed, 2 Feb 2005 09:44:05 -0800 (PST)
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_at_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_at_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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Wed Feb 02 2005 - 16:44:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC