Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2002 13:52:02 +0200
From:      "Paolo Di Francesco" <paipai@tin.it>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   A time resolution problem
Message-ID:  <3CD29602.24230.34C2C21@localhost>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CD29602.24230.34C2C21>