Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Appending to a data structure across multiple threads is hard, because there's contention for the point where the appending happens. There are good ways to solve this, of course, depending on what exactly you're trying to accomplish. Most of those things end up looking like thread-safe queues, and that's what MPSC channels and the like are built on. Crossbeam has several different high-performance solutions to this class of problem.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- multi-producer multi-consumer channels for message passing python library
- I needed to write a simple multi-threaded message processing queue in C++ today. Makes me really appreciate how easy this is to do in Rust.
-
crossbeam VS scalable-concurrent-containers - a user suggested alternative
2 projects | 13 Apr 2023
- Ergonomic Communication with a tokio::task::spawn
- How would one go about updating in-memory storage lock free, while other threads read?