Tagged articles
1 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Nov 4, 2022 · Fundamentals

Understanding CPU Time Slices, Hyper‑Threading, and Thread Context Switching

This article explains CPU time slicing, hyper‑threading, and thread context switching, describing how operating systems schedule multiple tasks, the costs of switches, ways to view them on Linux, and practical techniques to reduce overhead and choose optimal thread counts for different workloads.

CPU schedulingHyper-threadingthread context switching
0 likes · 10 min read
Understanding CPU Time Slices, Hyper‑Threading, and Thread Context Switching