Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 1997 12:17:49 +1000
From:      Mike Smith <mike@smith.net.au>
To:        "Jamil J. Weatherbee" <jamil@counterintelligence.ml.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Realtime Programming Under FreeBSD? 
Message-ID:  <199709100217.MAA00765@word.smith.net.au>
In-Reply-To: Your message of "Tue, 09 Sep 1997 11:44:10 MST." <Pine.BSF.3.96.970909114239.5264A-100000@counterintelligence.ml.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Can someone give a code snippet of the BEST way of running a 1000HZ for
> loop under freebsd, without consuming massive amounts of cpu time.

How about you tell us what you're actually trying to do?  It sounds 
like you want to poll something at a fixed 1KHz rate, which is a) 
uncivilised and b) not terribly easy without fiddling.

If this is what you're after, look at the 'pcaudio' driver, which 
fiddles one of the timers to arrange a fast regular interrupt.

mike




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709100217.MAA00765>