From owner-freebsd-current@FreeBSD.ORG Wed Feb 2 17:44:23 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A2DA16A4CE for ; Wed, 2 Feb 2005 17:44:23 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72C9243D48 for ; Wed, 2 Feb 2005 17:44:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: from jules (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j12Hi5GS066976; Wed, 2 Feb 2005 12:44:10 -0500 Date: Wed, 2 Feb 2005 09:44:05 -0800 (PST) From: Julian Elischer X-X-Sender: julian@localhost To: Garrett Wollman In-Reply-To: <200502011913.j11JDXsf084862@khavrinen.lcs.mit.edu> Message-ID: <20050202094256.K88344@localhost> References: <20050201101113.J572@localhost> <20050201190318.GE45608@cirb503493.alcatel.com.au> <200502011913.j11JDXsf084862@khavrinen.lcs.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Peter Jeremy cc: current@freebsd.org Subject: Re: cynchronised sleep capbilty.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 17:44:23 -0000 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: > < said: > > > 2) 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. > > 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" >