concurrency programming via rust
How to run?
Enter one crate such as thread and run cargo run
.
Contents
I have a plan to write a book about conncurrency programming via rust. The below is the contents of it and this repo contains all source codes.
chapter 1: Thread
Introduces Threads in std and concurrency libs.
chapter 2: Thread Pool
Introduces Thread pool for std thread.
chapter 3: async/await
Introduces async feature.
chapter 4: synchronization primitives
Introduces synchronization primitives contains containers and primitives in std lib.
chapter 5: concurrency collections
Introduces concurrency collections in std lib.
chapter 6: process
Introduces starting and executing a new process in the easy way.
chapter 7: channel
Introduces each channels such as mpsc, mpmc and broadcasters.
chapter 8: timer/ticker
Introduces timer and ticker.
chapter 9: parking_lot
Introduces parking_lot.
chapter 10: crossbeam
Introduces crossbeam.
chapter 11: rayon
Introduces rayon.
chapter 12: tokio
Introduces tokio.
chapter n: special
some special synchronization primitives and concurrency libs only for special single purpose.
- replace std::mpsc with crossbeam-channel: rust-lang/rust#93563