Hello, Erik Mouw wrote:
That doesn't surprise me, the kernel is allowed to reschedule your process during the for() loop, so depending on the system load, the actual delay varies a lot.
And I think it's going to be really hard to have the warranty that you will only wait for 1usec, not more, unless you go with real-time aware variants of the Linux kernel (RTAI or Adeos, for example).
John, can you be more precise about your needs for a 1usec delay ? Sincerly, Thomas -- Thomas Petazzoni thomas.petazzoni@xxxxxxxx -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/