OSX Lion and iOS5 now offer an application memory management mechanism called
Automatic Reference Counting (ARC). In short, ARC makes memory management the
job of the compiler rather than the programmer, which quite often increases
In Chapters 2 and 3, you see just how powerful ARC is. But before entering such a
dream world, it’s best to review the basics of memory management in a non-ARC
environment. In doing so, you’ll form a greater appreciation of all that ARC has to offer
and build a stronger foundation for when we delve into ARC in the next two chapters.
We start with an overview of memory management and its concepts followed by the
implementation of features such as alloc, dealloc, and autorelease.
If you want to develop efficient, smooth-running applications, controlling concurrency and memory are vital. Automatic Reference Counting is Apple's game-changing memory management system, new to Xcode 4.2. Pro Multithreading and Memory Management for iOS and OS X shows you how ARC works and how best to incorporate it into your applications. Grand Central Dispatch (GCD) and blocks are key to developing great apps, allowing you to control threads for maximum performance.
If for you, multithreading is an unsolved mystery and ARC is unexplored territory, then this is the book you'll need to make these concepts clear and send you on your way to becoming a master iOS and OS X developer.
What are blocks? How are they used with GCD?
Multithreading with GCD
Managing objects with ARC
What you’ll learn
How to use blocks
How blocks work and are implemented
Details about GCD
How and when to use GCD
To understand ARC technology and how to use it
Who this book is for
This book is for professional OS X and iOS application programmers. In particular, it's for those who want to develop highly responsive applications with concurrent programming.