Tagged articles
22 articles
Page 1 of 1
macrozheng
macrozheng
Feb 12, 2026 · Fundamentals

How Time Slices, Hyper‑Threading, and Context Switching Enable Multithreading

The article explains why modern CPUs, even single‑core ones, can run multiple threads by using short time slices, hyper‑threading hardware, and context‑switch mechanisms, and it discusses the costs, Linux monitoring tools, scheduling strategies, and practical ways to reduce switching overhead.

CPU schedulingHyper-threadingOperating Systems
0 likes · 10 min read
How Time Slices, Hyper‑Threading, and Context Switching Enable Multithreading
Deepin Linux
Deepin Linux
Dec 7, 2025 · Fundamentals

How CPU Context Switching Powers Multitasking: From Theory to Code

This article explains the fundamentals of CPU context switching, covering the hardware and kernel mechanisms, step‑by‑step saving and restoring of registers, scheduling algorithms, different types of switches, performance costs, optimization techniques, and includes a complete C++ simulation example.

CPUKernelMultitasking
0 likes · 42 min read
How CPU Context Switching Powers Multitasking: From Theory to Code
Tech Stroll Journey
Tech Stroll Journey
Nov 27, 2025 · Operations

How to Diagnose and Reduce CPU Context Switches on Linux

This guide explains when CPU context switches happen, how to monitor them with vmstat and pidstat, interprets key metrics such as cswch and nvcswch, and provides step‑by‑step analysis techniques for identifying and troubleshooting CPU performance issues on Linux systems.

CPUInterruptsLinux
0 likes · 11 min read
How to Diagnose and Reduce CPU Context Switches on Linux
macrozheng
macrozheng
May 16, 2025 · Fundamentals

Why More Threads Can Slow Down Your Java App—and How to Optimize Context Switching

This article explains how CPU time slices, hyper‑threading, and context‑switching affect multithreaded performance, outlines the costs of thread switches, and offers practical strategies such as lock‑free programming, CAS, reducing thread count, and using coroutines to improve efficiency.

CPU schedulingHyper-threadingJava concurrency
0 likes · 11 min read
Why More Threads Can Slow Down Your Java App—and How to Optimize Context Switching
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 27, 2025 · Fundamentals

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

The article explains how modern multi‑core CPUs use time slices, hyper‑threading, and various types of context switches to manage multithreaded workloads, discusses the performance costs of switching, and offers practical optimization strategies such as lock‑free programming, appropriate thread counts, and coroutine usage.

CPU schedulingHyper-threadingJava
0 likes · 9 min read
Understanding Time Slices, Hyper‑Threading, and Thread Context Switching
Architect's Guide
Architect's Guide
Mar 23, 2025 · Fundamentals

Understanding Time Slices, Hyper‑Threading, and Context Switching in Multithreaded Systems

This article explains how modern multi‑core CPUs use time slices, hyper‑threading, and various context‑switching mechanisms—including preemptive and cooperative scheduling—to manage threads efficiently, and offers practical tips for reducing switching overhead and optimizing thread counts.

CPU time sliceHyper-threadingcontext switching
0 likes · 10 min read
Understanding Time Slices, Hyper‑Threading, and Context Switching in Multithreaded Systems
Architecture Digest
Architecture Digest
Nov 27, 2024 · Fundamentals

Understanding Thread Context Switching, Time Slices, and Scheduling in Modern CPUs

The article explains how multi‑core CPUs use time slices and hyper‑threading to run multiple threads, describes the mechanics and costs of thread context switching, compares preemptive and cooperative scheduling, and offers practical tips for reducing switching overhead and optimizing thread counts.

CPU schedulingHyper-threadingcontext switching
0 likes · 10 min read
Understanding Thread Context Switching, Time Slices, and Scheduling in Modern CPUs
Java Architect Essentials
Java Architect Essentials
Apr 14, 2023 · Fundamentals

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

This article explains how modern multi‑core CPUs use time slices, hyper‑threading, and various types of context switching to achieve concurrency, discusses the performance overhead of frequent switches, and offers practical guidelines for optimizing thread count and reducing switching costs.

Hyper-threadingconcurrency optimizationcontext switching
0 likes · 11 min read
Understanding Time Slices, Hyper‑Threading, and Thread Context Switching
dbaplus Community
dbaplus Community
Jul 2, 2020 · Backend Development

Why High Concurrency Is Really About Squeezing CPU Performance

The article explains that high concurrency in distributed systems is measured by QPS, but its essence lies in effectively utilizing CPU resources, discusses control‑variable analysis of the HTTP request flow, compares PHP‑Swoole and Java‑Netty implementations, and shows how coroutine‑based designs can dramatically boost throughput when I/O blocking is present.

Backend PerformanceNettySwoole
0 likes · 15 min read
Why High Concurrency Is Really About Squeezing CPU Performance
Java Captain
Java Captain
Jun 28, 2019 · Backend Development

Understanding High Concurrency: CPU Utilization, Context Switching, and Performance Comparison of PHP Swoole vs Java Netty

This article explains that high concurrency is fundamentally about efficiently squeezing CPU resources, discusses the evolution of concurrency models, presents a control‑variable analysis of HTTP request flow, and compares PHP‑Swoole with Java‑Netty through detailed benchmark results and code examples.

Java NettyPHP SwoolePerformance Testing
0 likes · 13 min read
Understanding High Concurrency: CPU Utilization, Context Switching, and Performance Comparison of PHP Swoole vs Java Netty
21CTO
21CTO
Jun 21, 2017 · Fundamentals

Unlock Pragmatic Thinking: A Programmer's Guide to Mastering Learning and Decision‑Making

This article explores Andy Hunt's insights on pragmatic thinking, cognitive science, and effective learning strategies, offering programmers a roadmap to transform their mindset, improve problem‑solving, and advance from novice to expert while navigating personal and professional challenges.

Mindsetcognitive sciencecontext switching
0 likes · 13 min read
Unlock Pragmatic Thinking: A Programmer's Guide to Mastering Learning and Decision‑Making
Efficient Ops
Efficient Ops
Aug 13, 2015 · Operations

Top DevOps Insights: Agile, ChatOps, Vagrant, Context Switching & More

Compiled from the SEI blog series, this article presents concise summaries of the six most popular DevOps topics of the past six months—including Agile integration, ChatOps communication, Vagrant environment consistency, mitigating context‑switching overhead, and a foundational overview of DevOps—offering practical insights and links to the original sources.

ChatOpsDevOpsOperations
0 likes · 13 min read
Top DevOps Insights: Agile, ChatOps, Vagrant, Context Switching & More