A Verified Parallel Scheduler for OCaml 5
We present the implementation and mechanized verification of a realistic parallel scheduler for OCaml 5 using the Iris-based Zoo framework. Similarly to Domainslib, it relies on a work-stealing strategy to perform load balancing but also supports other scheduling strategies thanks to its flexible interface. e provide basic benchmarks demonstrating that its performance is on par with other schedulers from the OCaml ecosystem. As part of this effort, we verify the Chase-Lev work-stealing deque, as implemented in the Saturn library. We show that it features a subtle external and future-dependent linearization point. To deal with it, we introduce new abstractions for reasoning about prophecy variables in Iris.
Authors
- Gabriel Scherer
- Clément Allain (ORCID: https://orcid.org/0009-0005-2972-5181)
Institutions
- Institut national de recherche en sciences et technologies du numérique (FR)
- Université Paris Cité (FR)
Publication Details
- Journal
- Proceedings of the ACM on Programming Languages
- Published
- 2026-06-08
- DOI
- https://doi.org/10.1145/3808337
- Primary Topic
- Real-Time Systems Scheduling
- Type
- article
- Field-Weighted Citation Impact
- 0.00