From owner-freebsd-hackers Fri May 3 4:53:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by hub.freebsd.org (Postfix) with ESMTP id 375C037B417 for ; Fri, 3 May 2002 04:53:26 -0700 (PDT) Received: from pollens-mobile1 (151.38.92.85) by smtp2.libero.it (6.5.015) id 3CD1A065000660F1 for freebsd-hackers@FreeBSD.ORG; Fri, 3 May 2002 13:52:28 +0200 From: "Paolo Di Francesco" To: freebsd-hackers@FreeBSD.ORG Date: Fri, 3 May 2002 13:52:02 +0200 MIME-Version: 1.0 Subject: A time resolution problem Message-ID: <3CD29602.24230.34C2C21@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello hackers, I am trying to write a simple C program that must do some specialized things. The idea is that the program must send packets each T seconds. Ok, I know.. use the sleep, microsleep things, and it works pretty well if the interval is greater than 1 msec. (recompiled the kernel with HZ=100000) Now the problem is that I want to know if it is possible, and how, to schedule events with a precision greater (or equal to)) than 1ms. Maybe an approach with posix timers? Maybe move the app into the kernel space? Maybe change the scheduler? any idea, even the most exotic ones, appreciated! -- Ciao Ciao _ ->B<- All Recycled Bytes Message ... ~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message