Rust: Shared-State Concurrency

preview_player
Показать описание
#rust #threads #mutex
Instead of passing messages to and from threads, you can also have multiple threads access shared data. Shared memory concurrency is like multiple ownership.

Links

Chapter 16 Section 3
Рекомендации по теме
Комментарии
Автор

Brief intro but very straight forward, thx!

alexdai_
Автор

Thanks for the videos. It really helped me learn rust

YM-knqz
Автор

I dont under stand, when you spawn 10 threads, they all try to get the lock at the same time wouldn't the output only be 1? How are the threads all getting the lock/waiting?

dubfather
Автор

Could you post an example of deadlocking code where you don't drop the mutex and it deadlocks?

echobucket
Автор

Oh man, I almost always stop listening when asked to like and subscribe at the start. Only reason I stayed here was so many of the Rust presenters are so bad.

xenocampanoli
Автор

Hey, which font are you using it looks awesome?

abdul_samad_malik
Автор

this is the same video as "Let's Get Rusty" channel

andremachado
Автор

I was tasked to write a simple game that uses TCP, now im learning multi threading. How the hell did i get here? 😅 (Its my first week writing Rust)

futotta-neko
Автор

Mutex in Rest are "Bizarre" Weird... they lock nothing at all !!! In my code, so back to C programming !!

truehurukan
Автор

Hello, thank you for this great content. I have a problem. I'm using actix with juniper to program a GraphQL API, and now I'm facing difficulty in modifying the data stored in the variable where I save the data. Every time I add new data through the API, I don't see any changes in the data.

SoufiDz