Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition
by Robert Clair
14. Memory Management Overview
People who live in apartments often face a storage problem: They have more stuff than places to put stuff. Solving this problem requires shuffling possessions in and out of basement storage lockers and periodically going through the apartment and throwing out things that are no longer needed. Managing memory usage is the computer science equivalent of the apartment dweller’s problem.
Memory management is important because memory is a limited resource. Although it is true that current computers can have amounts of physical memory that would have seemed like an intoxicated dream only a few years ago, the average program’s memory requirements and the users’ expectations have also increased. Keeping a program’s memory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access