Scope-bound resource management, like C++.
GC and ARC are for people that need shared ownership, which is pretty much always a bad idea.
GC and ARC are for people that need shared ownership, which is pretty much always a bad idea.
It's just that there is a single owner, and the other threads have a non-owning view only.
You need strict control on the thread lifetime, which is enforced through the same single ownership system, in order to enforce this.
This is clasically done via memory synchronization mechanisms/atomics.
You do need to synchronize concurrent access to the same object, and it's not just concurrent writes, it's concurrent accesses if at least one of them is a write.