Re: Another question

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

 



On 6/16/05, Arlen Nascimento <arlen.nascimento@xxxxxxxxx> wrote:
> How can I measure 1 second into kernel?

I assume you mean "in the" not "into"? Measuring "into" is a bit
tricker, I think. If you want to measure 1 second in the kernel, the
first question is why? 1 second is a *long* time.

> Does one jiffie really corresponds to 1/100 seconds?? is it right?

It depends on HZ. And ACTHZ. A jiffy is defined to be 1/HZ seconds in
duration, sort of. Really, the kernel requests HZ to the hardware and
gets ACTHZ, which you'll notice is actually less than the request.
Thus, you get rounding compensation in functions like sys_nanosleep()
where 2 jiffies (or 2 milliseconds) are added to each request in 2.6.

What exactly are you trying to do?

Thanks,
Nish

--
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