#Searching for a Universal Solution for Multi-threaded Multimodule Processing

2 messages · Page 1 of 1 (latest)

vocal blaze
#

Hi everyone, wondering whether there are alternative ways besides Arc+RwLock to protect modules when implementing certain functionalities in Rust programming. In many cases, threads responsible for module creation differ from those managing data flow between modules. For instance, multimedia process data involves capture, encode, send, created in thread 1, but the actual data flow occurs inside the capture and encode threads themselves. What other approaches exist apart from using Arc+Rwlock?

velvet shadow
#

There exist a huge number of approaches, but none of them is universal