У нас вы можете посмотреть бесплатно Rust 'Fearless' Concurrency (16) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Following on from our meetup covering on Smart Pointers ( • Rust Smart Pointers - Box, Rc, Ref & RefMu... ), this session we we discussed 'Fearless Concurrency': https://doc.rust-lang.org/book/ Chapter 16: Fearless Concurrency This session looks at how rust's ownership model makes many common concurrency pitfalls and pain points visible at compile time - saving much painful debugging down the line. We'll also get a look at how we can safely access shared data using Mutex's and atomic reference counted smart pointers. Main presenter(s): Ciara Links: the book https://doc.rust-lang.org/book/ Joe Armstrong concurrency vs parallelism coffee queue diagram: https://joearms.github.io/published/2... Jakob Jenkov concurrency vs parallelism https://jenkov.com/tutorials/java-con.... --------------------------------------------------- NOTE: As of version 1.63 of rust (August 2022), scoped threads are also available, which allow to borrow non-static data using usual lifetime checking rules: https://github.com/rust-lang/rust/iss... e.g. let local_var = vec![1, 2, 3]; thread::scope(|s| { s.spawn(|| println!("borrowed from thread #1: {:?}", local_var)); s.spawn(|| println!("borrowed from thread #2: {:?}", local_var)); println!("borrowed from the main thread: {:?}", local_var); });