Re: MDELAY()

[ Available lists | Index of freebsd-hackers | Month of Apr 2005 | Week of 15 Apr 2005 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
ALeine <aleine@austrosearch.net>
Date
15 Apr 2005 13:02:37
Subject
Re: MDELAY()
Message-ID
200504151303.j3FD3Bhv073436@marlena.vvi.at


[ Hide this part ]
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


Elapsed time: 0.117 seconds