Tag

context switch

1 views collected around this technical thread.

Refining Core Development Skills
Refining Core Development Skills
May 21, 2021 · Fundamentals

Linux Scheduler: Structures, Scheduling Classes, Runqueue, and Context Switch Process

This article explains Linux scheduling fundamentals, describing the task_struct fields, scheduling classes, runqueue organization, the scheduling workflow including flag setting and execution, and the details of the context_switch function that performs address‑space and register state switches.

KernelLinuxOperating System
0 likes · 11 min read
Linux Scheduler: Structures, Scheduling Classes, Runqueue, and Context Switch Process
Qunar Tech Salon
Qunar Tech Salon
Aug 1, 2017 · Databases

MySQL Time Zone Setting Causes High CPU and Slow Queries Due to Mutex Contention

A production MySQL incident showed sudden system CPU spikes and many running threads despite low query throughput, which was traced to the server's time_zone=system setting causing timestamp conversion to lock a global mutex, leading to excessive spin‑locks, context switches, and degraded performance that was resolved by changing the time_zone to a fixed offset.

CPUMutexMySQL
0 likes · 6 min read
MySQL Time Zone Setting Causes High CPU and Slow Queries Due to Mutex Contention