From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 15 15:04:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D68D716A4CE for ; Fri, 15 Apr 2005 15:04:13 +0000 (GMT) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8142A43D2F for ; Fri, 15 Apr 2005 15:04:13 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id 3DE1135707 for ; Fri, 15 Apr 2005 17:04:12 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id 7F57A7D02; Fri, 15 Apr 2005 17:04:09 +0200 (CEST) Date: Fri, 15 Apr 2005 17:04:08 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050415150408.GA1442@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <200504151303.j3FD3Bhv073436@marlena.vvi.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504151303.j3FD3Bhv073436@marlena.vvi.at> User-Agent: Mutt/1.5.9i Subject: Re: MDELAY() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2005 15:04:14 -0000 On Fri, Apr 15, 2005 at 06:03:11AM -0700, ALeine wrote: > dipjyoti.saikia@gmail.com wrote: > > > DELAY() in FreeBSD uses a busy loop . I am looking for something > > like sleep_on_timeout() call in Linux . (dont' want to waste the CPU > > cycles by DELAY'ing) > > You may want to check out timeout(9) / untimeout(9), see man 9 timeout > for details. You should not use timeout(9) without a very good reason, the callout_* interface is prefered. Joerg