Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2005 17:04:08 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: MDELAY()
Message-ID:  <20050415150408.GA1442@britannica.bec.de>
In-Reply-To: <200504151303.j3FD3Bhv073436@marlena.vvi.at>
References:  <200504151303.j3FD3Bhv073436@marlena.vvi.at>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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