Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming

Submission + - Accurate microseconds delay in Linux?

reachanil writes: "I recently required to incorporate a 20 micro seconds delay in my linux (user space) application. I tried usleep and nanosleep and both failed to give me any accuracy less than 10millisec. The nanosleep man page indicated that I schedule my process in the SCHED_FIFO mode, but that didn't help either. I ended up hand coding my own micro seconds delay routine. Is there any other alternative? If you are interesting in reading a complete blog of what I tried and how I ended solving my problem, please refer — http://bapatonline.blogspot.com/2007/05/accurate-d elays-in-linux.html"

Slashdot Top Deals

"Who alone has reason to *lie himself out* of actuality? He who *suffers* from it." -- Friedrich Nietzsche

Working...