From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 15 13:02:37 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 DAD9516A4CE for ; Fri, 15 Apr 2005 13:02:37 +0000 (GMT) Received: from marlena.vvi.at (marlena.vvi.at [208.252.225.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBBF943D39 for ; Fri, 15 Apr 2005 13:02:36 +0000 (GMT) (envelope-from www@marlena.vvi.at) Received: from marlena.vvi.at (localhost.marlena.vvi.at [127.0.0.1]) by marlena.vvi.at (8.12.10/8.12.9) with ESMTP id j3FD3Gh3073437; Fri, 15 Apr 2005 06:03:18 -0700 (PDT) (envelope-from www@marlena.vvi.at) Received: (from www@localhost) by marlena.vvi.at (8.12.10/8.12.10/Submit) id j3FD3Bhv073436; Fri, 15 Apr 2005 06:03:11 -0700 (PDT) (envelope-from www) Date: Fri, 15 Apr 2005 06:03:11 -0700 (PDT) Message-Id: <200504151303.j3FD3Bhv073436@marlena.vvi.at> To: dipjyoti.saikia@gmail.com From: "ALeine" cc: freebsd-hackers@freebsd.org 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 13:02:38 -0000 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