ARC vs garbage collection
iOS manages memory with reference counting (ARC). If you had to implement automatic memory management without reference counts, what approach could you take?
iOS manages memory with reference counting (ARC). If you had to implement automatic memory management without reference counts, what approach could you take?
The alternative is tracing garbage collection. It periodically marks the objects reachable from the roots (stack, globals) and sweeps the rest, has evolved into generational and concurrent collectors, and handles reference cycles automatically.
Memory and ARCShort answerIntro
What is ARC, and why do we need it?
#arc
Memory and ARCShort answerAdvanced
Sometimes an app you sent to the background comes back and starts from scratch. Explain…
#jetsam
Memory and ARCShort answerIntro
What is a memory leak?
#jetsam
Memory and ARCShort answerIntro
Can you explain the difference between weak and strong?
#arc