cynchronised sleep capbilty..

Julian Elischer julian at elischer.org
Wed Feb 2 09:44:23 PST 2005


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"
>


More information about the freebsd-current mailing list