Re: Sleep for about microsecond in a user space program in 2.6 or 2.4 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux