Date: Fri, 16 Mar 2001 11:36:31 +0000 From: Benny Prijono <bennylp@switchlab.net> To: freebsd-realtime@freebsd.org Subject: RTC questions Message-ID: <3AB1FABF.C16A2E94@switchlab.net>
next in thread | raw e-mail | index | archive | help
Dear all, I'm working on a program which has soft-realtime requirement, that is to schedule the jobs every 20 miliseconds. But unfortunately, if I use normal usleep() + gettimeofday(), the schedule is somewhat not reliable. If I do usleep(20), I've almost always got 30 ms long sleep. I think this might have something to do with internal kernel timing precision, which if I recall correctly is 10 ms. So is there any solution to this problem? Is there any RTC api in FreeBSD, similar to /dev/rtc in Linux? (with /dev/rtc, a single program is allowed to program the RTC to any frequency between 1Hz - 16Khz. The application then can do read() to /dev/rtc, and it will block until the next RTC tick). And in general, is there any realtime works being done with FreeBSD? links? thanks, Bennylp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-realtime" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB1FABF.C16A2E94>