← Back to Projects
A program that estimates the value of pi using a multithreaded algorithm written in Rust. (It’s about 3.16.)
- Date: Jul – Aug 2020
- On GitHub
Made with
- Rust
About
This is a practice project I made to learn Rust and try out its multithreading and memory safety features. As I describe in this blog post, each thread randomly generates millions of pairs of numbers and tests them. The total results from all the threads then fill in a formula that estimates the value of pi.
I’m using it as a testbed to experiment with Rust’s features.
- Increased algorithm performance by 12x using message-passing multithreading