this post was submitted on 01 Sep 2023
192 points (97.5% liked)

Technology

59669 readers
2830 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] secret301 2 points 1 year ago (1 children)

I was just thinking to myself if it was possible to have more threads than 2 for each core. I guess this answers that but I didn't know you could have that many per core!

Why isn't it more common to have like 4 threads per core?

[โ€“] SlippyCliff76 7 points 1 year ago

Multi-threading should just really be called "intelligent scheduling." It's making more efficient use of a CPU core by scheduling multiple different lines of code to run on a core at the same time. Some bits of code take longer to run then others and don't make full use of the CPU during the time they run, so the CPU will schedule another thread/code snippet to run in that gap of downtime.

I'm certain someone will correct me and add clarity to this explanation, of course.