Become a fan of Slashdot on Facebook

 



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

What this country needs is a good five dollar plasma weapon.

Working...