TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CPU Clocks and Clock Interrupts, and Their Effects on Schedulers

33 pointsby r4umover 9 years ago

2 comments

jdubover 9 years ago
One interesting thing this (dated but still very relevant) article misses is timer coalescing.<p>Most modern operating systems try to merge a bunch of timer actions into a single wake&#x2F;interrupt. Not only does this leave more time for other work to be done in the normal case of a loaded CPU, but if there&#x27;s less demand, it provides way more opportunity for the CPU to fall into a lower power state.<p>Some timer APIs will let you specify how accurate you want your timer to be. Often enough, a few tens or hundreds of milliseconds doesn&#x27;t really matter for your use case, but that&#x27;s AEONS in CPU time!
ravanaveover 9 years ago
&quot;A SPNT OS has no real need of a scheduler.&quot;<p>I would rather disagree: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Computer_multitasking" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Computer_multitasking</a>. OS in the most of the cases needs to be interactive, what would be impossible without multitasking. Multitasking would not be possible without a scheduler. So, we would not swap the active task and we would be stuck with the current task forever (or until it finishes), without even the ability to interrupt it.
评论 #10767363 未加载