Tag

CPU scheduling

0 views collected around this technical thread.

OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 16, 2025 · Fundamentals

Why Energy‑Aware Scheduling Falls Short: Inside CPU Frequency, Power Modeling, and Scheduler Limits

This article examines the challenges of Energy Aware Scheduling on big‑LITTLE CPUs, detailing how frequency prediction, power calculation, cache hierarchy, out‑of‑order execution, and branch prediction affect task placement decisions, and why the resulting models often remain inaccurate and unreliable.

CPU schedulingenergy aware schedulingfrequency prediction
0 likes · 14 min read
Why Energy‑Aware Scheduling Falls Short: Inside CPU Frequency, Power Modeling, and Scheduler Limits
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 schedulingJava Concurrencycontext switching
0 likes · 11 min read
Why More Threads Can Slow Down Your Java App—and How to Optimize Context Switching
Deepin Linux
Deepin Linux
May 5, 2025 · Fundamentals

An Overview of CPU Scheduling Algorithms and Their Practical Applications

CPU scheduling, a core component of operating systems, determines how processes share CPU resources, and this article explains preemptive vs non‑preemptive scheduling, key evaluation metrics, classic algorithms such as FCFS, SJF, RR, priority, multilevel queues, and guidance on selecting suitable algorithms for various system scenarios.

CPU schedulingOperating SystemsPerformance Metrics
0 likes · 33 min read
An Overview of CPU Scheduling Algorithms and Their Practical Applications
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 schedulingJavacontext switching
0 likes · 9 min read
Understanding Time Slices, Hyper‑Threading, and Thread Context Switching
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 schedulingconcurrencycontext switching
0 likes · 10 min read
Understanding Thread Context Switching, Time Slices, and Scheduling in Modern CPUs
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 31, 2024 · Operations

An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel

The Linux kernel’s extensible scheduler class sched_ext introduces a new ext_sched_class with eBPF‑driven callbacks and dispatch queues, allowing developers to plug custom scheduling policies via struct sched_ext_ops without recompiling the kernel, while integrating into the existing hierarchy and exposing trade‑offs such as central‑CPU load and community adoption challenges.

CPU schedulingLinux kerneleBPF
0 likes · 16 min read
An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel
Refining Core Development Skills
Refining Core Development Skills
Nov 17, 2022 · Fundamentals

Understanding CPU Scheduling Fundamentals in Linux

This article explains the fundamentals of CPU scheduling in Linux, covering real-time scheduling for high-priority tasks and the fair scheduling algorithm for user processes, including code examples.

CPU schedulingFair SchedulingLinux
0 likes · 17 min read
Understanding CPU Scheduling Fundamentals in Linux
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-threadingmultithreading
0 likes · 10 min read
Understanding CPU Time Slices, Hyper‑Threading, and Thread Context Switching
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 29, 2022 · Fundamentals

Understanding RTG (Related Thread Group) in the Linux Kernel: Core Selection, Frequency Aggregation, and Busy Hysteresis

The article explains Linux’s Related Thread Group (RTG) mechanism—its struct definition, default Android grouping, core‑selection logic that boosts whole groups to big‑core clusters, load‑aggregation for DCVS frequency decisions, and the newer busy‑hysteresis feature that delays low‑power entry to improve performance and power efficiency.

CPU schedulingDCVSLinux kernel
0 likes · 15 min read
Understanding RTG (Related Thread Group) in the Linux Kernel: Core Selection, Frequency Aggregation, and Busy Hysteresis
Refining Core Development Skills
Refining Core Development Skills
Mar 27, 2022 · Fundamentals

Understanding CPU Load Balancing and Scheduler Domains in Linux

This article explains the concept of CPU load balancing, the hierarchical scheduler domain and group structures in a multi‑core SoC, when and how the Linux kernel performs periodic, no‑hz, and idle load‑balancing, and outlines the step‑by‑step algorithm used to migrate tasks for balanced system performance.

CPU schedulingLinux KernelLoad Balancing
0 likes · 9 min read
Understanding CPU Load Balancing and Scheduler Domains in Linux
Selected Java Interview Questions
Selected Java Interview Questions
Mar 27, 2022 · 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 thread scheduling strategies, describes the overhead of context switches, and offers practical optimization techniques to balance thread count and improve concurrency performance.

CPU schedulingconcurrencycontext switching
0 likes · 11 min read
Understanding Time Slices, Hyper‑Threading, and Thread Context Switching
Selected Java Interview Questions
Selected Java Interview Questions
Feb 28, 2022 · Fundamentals

Understanding Thread.Sleep: How It Works and Its Impact on CPU Scheduling

This article explains the purpose and behavior of the Thread.Sleep function in .NET, clarifies common misconceptions about its timing and effects, and relates it to operating‑system scheduling concepts such as time‑slice and preemptive multitasking.

C++CPU schedulingOperating System
0 likes · 9 min read
Understanding Thread.Sleep: How It Works and Its Impact on CPU Scheduling
iQIYI Technical Product Team
iQIYI Technical Product Team
Feb 18, 2022 · Cloud Native

CPU Share Syncer: Enabling High‑Priority Task CPU Preemption in iQIYI Video Production Kubernetes Clusters

iQIYI’s cpu‑share‑syncer daemon runs on every node, reads a pod’s iqiyi.com/cpu‑share annotation, updates the pod’s cpu.shares after disabling the Kubernetes CPU CFS quota, and lets high‑priority video‑production pods pre‑empt CPU from lower‑priority pods, significantly speeding task execution.

CPU schedulingDaemonSetHigh priority tasks
0 likes · 13 min read
CPU Share Syncer: Enabling High‑Priority Task CPU Preemption in iQIYI Video Production Kubernetes Clusters
Tencent Architect
Tencent Architect
Sep 10, 2021 · Cloud Native

BT Scheduler for Absolute Preemption: Boosting CPU Utilization and QoS in Cloud‑Native Environments

This article analyzes the limitations of the Linux Completely Fair Scheduler (CFS) for high‑priority workloads, introduces Tencent's custom offline BT scheduler that provides absolute preemption, and presents experimental results showing significant improvements in latency, CPU utilization, and carbon‑reduction for cloud‑native services.

BT schedulerCFSCPU scheduling
0 likes · 10 min read
BT Scheduler for Absolute Preemption: Boosting CPU Utilization and QoS in Cloud‑Native Environments
macrozheng
macrozheng
Jun 10, 2020 · Fundamentals

What Does Thread.Sleep(0) Actually Do? Unveiling Thread Scheduling Basics

This article explains the purpose of Thread.Sleep, clarifies common misconceptions about its timing behavior, compares Unix time‑slice and Windows preemptive scheduling using a cake‑eating analogy, and shows why Thread.Sleep(0) can trigger an immediate CPU‑competition reschedule to improve responsiveness.

CPU schedulingOperating SystemThread.Sleep
0 likes · 10 min read
What Does Thread.Sleep(0) Actually Do? Unveiling Thread Scheduling Basics
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 3, 2020 · Operations

Understanding Linux PSI: Pressure Stall Information for System Resource Monitoring

Pressure Stall Information (PSI) is a Linux kernel feature that measures real‑time CPU, memory, and I/O pressure by tracking task wait times, offering finer granularity than load average or vmpressure, and enabling more accurate scheduling, cgroup management, and out‑of‑memory handling.

CPU schedulingLinux KernelMemory Management
0 likes · 14 min read
Understanding Linux PSI: Pressure Stall Information for System Resource Monitoring
Java Captain
Java Captain
Nov 11, 2018 · Fundamentals

Understanding Concurrency and Parallelism: Concepts, Differences, and Real‑World Examples

This article explains the operating‑system concepts of concurrency and parallelism, illustrates how time‑slicing creates the illusion of simultaneous tasks on a single‑CPU system, defines true parallel execution on multi‑CPU machines, and uses everyday analogies to clarify their differences.

CPU schedulingOperating SystemsParallelism
0 likes · 6 min read
Understanding Concurrency and Parallelism: Concepts, Differences, and Real‑World Examples
DevOps
DevOps
Apr 3, 2016 · Fundamentals

The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks

A metaphorical story follows a newly created thread as it learns about extracting request parameters, performing login, handling CPU scheduling, using caches, encountering deadlocks, and ultimately witnessing a system reboot, illustrating core concepts of multithreading, concurrency control, and thread‑pool lifecycle.

CPU schedulingLocksconcurrency
0 likes · 12 min read
The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks