Lune

SC2020Top-tier venue

Compiler-based timing for extremely fine-grain preemptive parallelism

Souradip Ghosh, Michael Cuevas, Simone Campanoni, Peter A. Dinda

Abstract

In current operating system kernels and run-time systems, timing is based on hardware timer interrupts, introducing inherent overheads that limit granularity. For example, the scheduling quantum of preemptive threads is limited, resulting in this abstraction being restricted to coarse-grain parallelism. Compiler-based timing replaces interrupts from the hardware timer with callbacks from compiler-injected code. We describe a system that achieves low-overhead timing using whole-program compiler transformations and optimizations combined with kernel and run-time support. A key novelty is new static analyses that achieve predictable, periodic run-time behavior from the transformed code, regardless of control-flow path. We transform the code of a kernel and run-time system to use compiler-based timing and leverage the resulting fine-grain timing to extend an implementation of fibers (cooperatively scheduled threads), attaining what is effectively preemptive scheduling. The result combines the fine granularity of the cooperative fiber model with the ease of programming of the preemptive thread model.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling cites Lightweight preemptive user-level threads
  • Automatic Parallelism Management cites Task parallel assembly language for uncompromising parallelism
  • Compiling Loop-Based Nested Parallelism for Irregular Workloads cites Task parallel assembly language for uncompromising parallelism
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. The Benefits and Limitations of User Interrupts for Preemptive Userspace SchedulingLinsong Guo, Danial Zuberi, Tal Garfinkel, Amy OusterhoutNSDI 2025 · 10 citations
  2. Lightweight preemptive user-level threadsShumpei Shiina, Shintaro Iwasaki, Kenjiro Taura, Pavan BalajiPPoPP 2021 · 10 citations
  3. Task parallel assembly language for uncompromising parallelismMike Rainey, Ryan R. Newton, Kyle C. Hale, Nikos Hardavellas et al.PLDI 2021 · 9 citations
  4. Automatic Parallelism ManagementSam Westrick, Matthew Fluet, Mike Rainey, Umut A. AcarPOPL 2024 · 7 citations
  5. Compiling Loop-Based Nested Parallelism for Irregular WorkloadsYian Su, Mike Rainey, Nick Wanninger, Nadharm Dhiantravan et al.ASPLOS 2024 · 5 citations

Builds on1

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations

Related papers

  1. PeeR: First-Class Scheduling for Latency-Critical eBPF ApplicationsJeremy Carin, Ben Holmes, Weiyang Wang, Ankit Bhardwaj et al.OSDI 2026
  2. Computation Is Fast, Use T hreadlet !: Efficient Threading for μs-Scale Computing via OS/Hardware Co-DesignYiming Yao, Xiaohe Qin, Yi Fan, Yuanlong Li et al.SOSP 2026
  3. Frequent background polling on a shared thread, using light-weight compiler interruptsNilanjana Basu, Claudio Montanari, Jakob ErikssonPLDI 2021 · 4 citations
  4. Immortal Threads: Multithreaded Event-driven Intermittent Computing on Ultra-Low-Power MicrocontrollersEren Yildiz, Lijun Chen, Kasim Sinan YildirimOSDI 2022 · 10 citations
  5. Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process WorkloadsAleix Roca, Vicenç BeltranPPoPP 2026
Dusk over the sea between two cliffs drawn in fine vertical lines