Skip to content

Instantly share code, notes, and snippets.

View sithart's full-sized avatar
😀
The time has come

sitharthan sithart

😀
The time has come
  • Chadura Tech
  • Chennai
View GitHub Profile
@sithart
sithart / work_queue.rs
Created January 16, 2023 18:00 — forked from NoraCodes/work_queue.rs
An example of a parallel work scheduling system using only the Rust standard library
// Here is an extremely simple version of work scheduling for multiple
// processors.
//
// The Problem:
// We have a lot of numbers that need to be math'ed. Doing this on one
// CPU core is slow. We have 4 CPU cores. We would thus like to use those
// cores to do math, because it will be a little less slow (ideally
// 4 times faster actually).
//
// The Solution: