this post was submitted on 16 Feb 2024
994 points (99.2% liked)

linuxmemes

20463 readers
325 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 114 points 6 months ago (20 children)

I find this a highly interesting problem. How do you measure how much CPU time a program needs? The OS has ceded its control of the CPU to the program. Does it just look at the clock after it’s in charge again to derive a program’s load?

While we’re at it: How does the OS even yank the CPU away from the currently running process?

[–] [email protected] 18 points 6 months ago (1 children)
[–] [email protected] 3 points 6 months ago

An awesome find. Thank you very much!

load more comments (18 replies)