Introduction to Memory Management
Now, wait a minute. Haven’t we as a species advanced to the point where we don’t need to worry about managing memory? Why on Earth should we manage memory when garbage collection algorithms can do just as good a job (or better!)? Look at Java, C#, or any web programming language today. They all use garbage collection and leave you with mental bandwidth so you can solve real problems instead of mucking around with allocating and deallocating memory.
In fact, even the desktop Mac programming environment offers garbage collection. So you may be surprised to find out that the iPhone OS does not use garbage collection at all.
Why did Apple make this decision? In a word: performance. A garbage collector is like ...