|
|
|
|
|
by adwn
248 days ago
|
|
This one? > Turns out threads also may share resources like out-of-process files, memory mapped regions, shared memory, databases, distributed transactions For multi-threaded parallelization, - out-of-process files
- databases
- distributed transactions
aren't really relevant, and Rust directly helps with the other two aspects: - memory mapped regions
- shared memory
In practice, your "very specific" aspect is the most important one, and the hardest to get right without Rust's Send and Sync traits and their automatic enforcement. |
|
> aren't really relevant, and Rust directly helps with the other two aspects:
Not at all, because Rust code has nothing to say about what other processes do to those resources, the only thing you can do is wrap accesses in a unsafe code block and hope for the best, that nothing was corrupted.