ARC
ARC
Arc stands for Atomic Reference Counting. Itβs a thread-safe reference-counting pointer used for shared ownership of data across multiple threads.
- Arc allows multiple threads to share ownership of the same data.
- Unlike Rc
(Reference Counting), which is non-thread-safe, Arc uses atomic operations for reference counting, making it safe for concurrent use - There are essentially atomic shared pointers