Re: MDELAY()

2005-04-15 Thread Joerg Sonnenberger
On Sat, Apr 16, 2005 at 01:12:42AM +0930, Daniel O'Connor wrote: > On Sat, 16 Apr 2005 00:34, Joerg Sonnenberger wrote: > > > 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_* > >

Re: MDELAY()

2005-04-15 Thread Daniel O'Connor
On Sat, 16 Apr 2005 00:34, Joerg Sonnenberger wrote: > > 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. Can someone add a warning to the top of the makefile

Re: MDELAY()

2005-04-15 Thread Joerg Sonnenberger
On Fri, Apr 15, 2005 at 06:03:11AM -0700, ALeine wrote: > [EMAIL PROTECTED] 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) /

Re: MDELAY()

2005-04-15 Thread Joseph Koshy
> sleep_on_timeout() call in Linux . (dont' want to waste the CPU cycles You may want to try the manual pages. % man -k sleep | fgrep '(9)' endtsleep(9), sleepinit(9), unsleep(9) - manage the queues of sleeping processes init_sleepqueues(9) ... sleepq_wai

Re: MDELAY()

2005-04-15 Thread ALeine
[EMAIL PROTECTED] 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. > As I am pretty new to

Re: MDELAY()

2005-04-15 Thread Daniel O'Connor
On Fri, 15 Apr 2005 21:46, Dipjyoti Saikia 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) tsleep/msleep/timeout are probably what you want. -- Daniel O'Connor software and ne

Re: MDELAY()

2005-04-15 Thread Dipjyoti Saikia
Hi, 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) As I am pretty new to programming with Free BSD , can you help me with some details about equivalent implementation(wait queues etc) in

Re: MDELAY()

2005-04-12 Thread Brooks Davis
On Wed, Apr 13, 2005 at 02:33:22AM +0530, Dipjyoti Saikia wrote: > Hi, > > Can any one help me out with a better Implementation of MDELAY() in > FreeBSD kernel 4.10 Please start by defining better. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519