Writing a task scheduler in Zig
I'm working on an application that needs the ability to schedule tasks. Many applications have a similar need, but requirements can vary greatly. Advanced cases might require persistence and distribution, typically depending on external systems (like a database or queue) to do much of the heavy lifting. My needs are simpler: I don't have a huge variety of tasks or a high number of them.
Writing a task scheduler in Zig May 09, 2024 I'm working on an application that needs the ability to schedule tasks. Many applications have a similar need, but requirements can vary greatly. Advanced cases might require persistence and distribution, typically depending on external systems (like a database or queue) to do much of the heavy lifting. My needs are simpler: I don't have a huge variety of tasks or a high number of them. If you're just looking for a working implementation, I've added this to my Zig Utility Library (zul) , with documentation . Thread-Per-Task At its simplest, we could
Explore this link on the map →related reading
- Zig explores structured concurrency [LWN.net]lwn.net
- Measuring Mutexes, Spinlocks and how Bad the Linux Scheduler Really is | Probably Danceprobablydance.com
- Awesome-ML-SYS-Tutorial/sglang/scheduler/readme-en.md at main · zhaochenyang20/Awesome-ML-SYS-Tutorial · GitHubgithub.com
- Microtasks and event looptr.javascript.info
- Efficient Alarm Clock | CS 162 Project 2cs162.org
- Brain Fuck Scheduler - Wikipediaen.wikipedia.org
- Strict Priority Scheduler | CS 162 Project 2cs162.org
- Devlog ⚡ Zig Programming Languageziglang.org
- Slurm Workload Manager - Wikipediaen.wikipedia.org
- Concurrency Patterns in Embedded Rust - Ferrous Systemsferrous-systems.com
- GitHub - stanford-cs149/asst2: Stanford CS149 -- Assignment 2 · GitHubgithub.com
- Allocators | zig.guidezig.guide