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?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-realtime" in the body of the message