4 ms·
> I've never understood the fetish C/++ programmers have for shared memory, and locks, and mutexes. There are some problems which are more amenable to shared m
by dmpk2k 13y ago
> I've never understood the fetish C/++ programmers have for shared memory, and locks, and mutexes.
There are some problems which are more amenable to shared mutable memory, especially when performance or memory space is a concern. And for those problems where the sharing of mutable data is not needed, forking, pointer ownership, thread-local data, and const correctness are all old concepts.
No silver bullet.