4 ms·
Java's HashMap for example is not thread-safe, but if you use it from multiple threads, you may or may not experience all kinds of issues.
by n_plus_1_acc 2y ago
Java's HashMap for example is not thread-safe, but if you use it from multiple threads, you may or may not experience all kinds of issues.
- vips7L 2y agoAgain that only matters if there is mutation. Reads are perfectly safe to happen from any thread. This code is self contained. Rust isn’t a silver bullet here.