Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2005 06:03:11 -0700 (PDT)
From:      "ALeine" <aleine@austrosearch.net>
To:        dipjyoti.saikia@gmail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: MDELAY() 
Message-ID:  <200504151303.j3FD3Bhv073436@marlena.vvi.at>

next in thread | raw e-mail | index | archive | help
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.
 
> As I am pretty new to programming with Free BSD ,  can you help
> me with some details about equivalent implementation(wait queues
> etc) in Free BSD .

Reading the man pages for asleep(9) / wakeup(9) should give you a
good introduction.

ALeine
___________________________________________________________________
WebMail FREE http://mail.austrosearch.net 



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