Тёмный
No video :(

Rust: Send Data between Threads 

The Dev Method
Подписаться 6 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@LucidGR
@LucidGR 6 месяцев назад
This channel deserves a tone of subscribers. Great job!
@bissbort
@bissbort Год назад
Love your teaching style and your channel, please keep up the good work. I hope your popularity will grow with Rust's 🦀!
@rsalmei
@rsalmei 2 месяца назад
What font do you use? Very nice.
@Gabriel250100
@Gabriel250100 Год назад
The next topic will be great, I'm coding an app which uses shared state and it's hard to work with library structs that aren't Send+Sync. Nice video as always
@user-uf4lf2bp8t
@user-uf4lf2bp8t 10 дней назад
Thats a bad library if their types use some !Send cell and they don't have a feature to make it into a mutex instead. Same thing if they use exclusively Rc with no Arc feature
@job4753
@job4753 Год назад
Great video once again!
@roopeshsaravanan8609
@roopeshsaravanan8609 7 месяцев назад
Your 5000th subscriber ❤
@danraine9009
@danraine9009 Год назад
Awesome video, if you were trying to utilise threads to the maximum level would you need to do some sort of logic to get the users specs of machine and how many threads their system is capable of etc? I honestly don't have any experience with threads or really much knowledge of the underlying processes of a CPU etc and if it does differentiate between machines etc... Is this knowledge needed? and if so do you have any places to look to learn more about these ideas? Thanks for the videos I've only recently found your channel but everything I have watched so far has been really valuable.
@TheDevMethod
@TheDevMethod Год назад
Improving execution performance can get really technical and expansive really fast. There’s even techniques like loop unrolling to help speed up the current process of execution rather than trying to use threads. This article could give you ideas of what to look into next blog.mineiros.io/how-to-use-multithreading-and-multiprocessing-a-beginners-guide-to-parallel-and-concurrent-a69b9dd21e9d
@danraine9009
@danraine9009 Год назад
@@TheDevMethod Awesome response thank you, I am very new to this area so apologies if my question wasn't great I'm just trying to get as much information as possible. Keep up the great work :)
@736939
@736939 Год назад
OK, but where to use it? Is there some design patterns in message passing?
@adaum79
@adaum79 Год назад
Nice vídeo
@marcel2023
@marcel2023 Год назад
What happens if that thread you are sending messages to, is really busy. Will messages be dropped or will the sending wait. Is there some sort of acknowledge?
@TheDevMethod
@TheDevMethod Год назад
The docs explain that the send method returns a Result that can be a SendError doc.rust-lang.org/std/sync/mpsc/struct.Sender.html#method.send. And that error comes from the receiver that disconnected while sending. doc.rust-lang.org/std/sync/mpsc/struct.SendError.html.
@songz9781
@songz9781 Год назад
I mostly work with async runtimes in Rust - which is usually within the “futures” crate. The mpsc channel has back pressure support and let you define either the channel should have certain size of a buffer or “unbounded” channel that put developer in charge of make sure the channel won’t be crowded. Hope this helps.
@nothingtoospecial777
@nothingtoospecial777 Год назад
what's the theme?
@TheDevMethod
@TheDevMethod Год назад
Ayu
Далее
Rust: Shared-State Concurrency
7:06
Просмотров 11 тыс.
Why It (Mostly) Doesn't Matter How You Code In Rust
22:57
Can You Bend This Bar?
01:00
Просмотров 5 млн
Rust Threading Basics 🦀 Rust Tutorial
28:26
Просмотров 6 тыс.
You Should Really Know These Traits in Rust
18:36
Просмотров 13 тыс.
Rust: Closures
19:53
Просмотров 16 тыс.
8 deadly mistakes beginner Rust developers make
14:14
Просмотров 165 тыс.
Async Rust Is A Bad Language | Prime Reacts
28:46
Просмотров 94 тыс.
Use Arc Instead of Vec
15:21
Просмотров 143 тыс.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
why rust libraries may never exist.
7:26
Просмотров 245 тыс.
The Rust Standard Library is SO Confusing...Until Now!
11:45
Can You Bend This Bar?
01:00
Просмотров 5 млн