Concurrency in Rust

Rust has amazing support for concurrency programming. Today I will cover Mutex, Rc, RefCell, Channels, and Threads. I might make a second post covering the rest of the concepts like Arc. Rust dont have green threads since focus on having zero cost of abstractions. However, using channels we have a powerful abstraction to work with threads. Combined with Rc/Arc and RefCell/Cell we have a good foundation for good concurrency programs. Today I want to share 4 small pocs and 4 videos about Mutex, Rc/RefCell, Threads, and Channels in Rust. Let's get started!


The Videos

The Source Code

https://github.com/diegopacheco/rust-playground/tree/master/mutex-fun-2

https://github.com/diegopacheco/rust-playground/tree/master/rc-cell-fun

https://github.com/diegopacheco/rust-playground/tree/master/threads-rust-fun

https://github.com/diegopacheco/rust-playground/tree/master/channels-fun-rust

Cheers,

Diego Pacheco

Popular posts from this blog

C Unit Testing with Check

Having fun with Zig Language

HMAC in Java