Tagged articles
context switching
23 articles · Page 1 of 1
Cognitive science shows the human brain can only deeply focus on two tasks at once due to limited working memory, attention residue, and long context-switch recovery; by externalizing judgment rules into AI agents, knowledge workers can offload mature tasks to run dozens in parallel while maintaining two front-line efforts.
AI agentsHuman-AI Collaborationattention residue
0 likes · 14 min read

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-ThreadingMultithreading
0 likes · 10 min read

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.
CPUMultitaskingScheduling
0 likes · 42 min read

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.
CPULinuxcontext switching
0 likes · 11 min read

This article explains how the CPU executes instructions, the roles of processes and threads, the structure of a process control block, and the different types of context switches in Linux, highlighting why these mechanisms impact overall system performance.
CPULinuxThread
0 likes · 9 min read

The article analyzes why relying solely on operating‑system threads cannot easily achieve single‑machine million‑level concurrency, examining thread stack memory misconceptions, kernel‑level context‑switch costs, and how user‑space coroutine scheduling overcomes these limits.
ConcurrencyCoroutinesIO Multiplexing
0 likes · 6 min read

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

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

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

This article explains what Linux context switching is, details the information stored in a process control block, distinguishes between process, thread, and interrupt context switches, and shows how to monitor them using vmstat and pidstat commands.
LinuxPerformance Monitoringcontext switching
0 likes · 6 min read

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

This article explains the concept of context switching, compares process, thread, and coroutine switches, and details how Go’s M:N scheduler implements low‑cost coroutine switches with examples, costs, and optimization tips for writing efficient concurrent programs.
ConcurrencyGoRuntime
0 likes · 7 min read

This guide evaluates three Kubernetes context‑switching tools—Kubectx, Kubie, and Kubeswitch—against speed, flexibility, and security criteria, helping developers choose the most efficient solution for managing multiple clusters.
Kubernetescloud-nativecontext switching
0 likes · 5 min read

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

The article explains how modern multi‑core CPUs use time slices, hyper‑threading, and various thread scheduling strategies, describes the overhead of context switches, and offers practical optimization techniques to balance thread count and improve concurrency performance.
CPU schedulingConcurrencyHyper-Threading
0 likes · 11 min read

This article explains the low‑level principles of C++ coroutine context switching, walks through the owl.context API design, demonstrates assembly implementations for co_getcontext, co_setcontext, co_swapcontext and co_makecontext, and provides practical examples and code to build stackful coroutines on 32‑bit ARM.
ARMC++Low-Level Programming
0 likes · 20 min read

This article explains core operating‑system concepts such as processes, threads, their control blocks and contexts, details how CPU, process, and thread context switches and system calls work on Linux, and shows how to analyze them with vmstat, pidstat, and sysbench for performance tuning.
LinuxPerformance AnalysisThread
0 likes · 19 min read

This guide compares four practical Git context‑switching techniques—stash + branch, WIP commit + branch, repository cloning, and git worktree—detailing step‑by‑step commands, advantages, drawbacks, and tips so you can choose the workflow that best fits your needs.
Workflowbranchingcontext switching
0 likes · 10 min read

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 PerformanceCPU utilizationNetty
0 likes · 15 min read

This article explains how thread context switching and concurrency affect Java program performance, demonstrates the impact with code examples and benchmarks, and provides practical solutions for thread safety, visibility, deadlock avoidance, and resource optimization.
Concurrencycontext switchingthreading
0 likes · 10 min read

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.
CPU utilizationJava NettyPHP Swoole
0 likes · 13 min read


21CTOJun 21, 2017 · Fundamentals
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.
Learning Strategiescognitive sciencecontext switching
0 likes · 13 min read

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.
AgileChatOpsDevOps
0 likes · 13 min read
