每秒滴答数和 jiffies。有什么区别?
在Linux上,每秒的jiffies和ticks之间有区别吗?我了解 jiffies 和 HZ 之间的关系。但我无法理解每秒的滴答数是如何相关的。我在某处读到它是一个内部操作系统定时器,但是当我们有 jiffies 时,为什么我们还需要另一个呢?有人可以解释一下吗?
On Linux, Is there a difference between jiffies and ticks per second? I understand relation between jiffies and HZ. But i am unable to comprehend how is ticks per second related. I read somewhere that its a internal OS timer, but when we have jiffies why do we need another one? Can someone please explain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Jiffy 是一个长度单位;它可以指不同的时间长度,但它是一个长度单位。一个tick是一个计算单位;它与时间无关,而是与系统计时器中断有关(可以由时间定义,但计时器的定义方式并不影响该时间段内完成的工作量被定义为一个时钟周期这一事实)。
A Jiffy is a length unit; it can refer to different time lengths, but it's a length unit. A tick is a computation unit; it is unrelated to time, but rather is related to the system timer interrupt (which may be defined by time, but how that timer is defined doesn't affect the fact that the quantity of work that's done in that period is defined as a tick).