𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Concurrent Programming in Mac OS X and iOS: Unleash Multicore Performance with Grand Central Dispatch

✍ Scribed by Vandad Nahavandipoor


Publisher
O'Reilly Media
Year
2011
Tongue
English
Leaves
58
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X. Managing your application’s resources on more than one core isn't easy, but it's vital. Apps that use only one core in a multicore environment will slow to a crawl. If you know how to program with Cocoa or Cocoa Touch, this guide will get you started with GCD right away, with many examples to help you write high-performing multithreaded apps.Package your code as block objects and invoke them with GCD Understand dispatch queuesβ€”the pools of threads managed by GCD Use different methods for executing UI and non-UI tasks Create a group of tasks that GCD can run all at once Instruct GCD to execute tasks only once or after a delay Discover how to construct your own dispatch queues

✦ Table of Contents


Table of Contents......Page 7
Preface......Page 9
Using Code Examples......Page 10
How to Contact Us......Page 11
Acknowledgments......Page 12
Short Introduction to Block Objects......Page 13
Constructing Block Objects and Their Syntax......Page 14
Variables and Their Scope in Block Objects......Page 18
Invoking Block Objects......Page 24
Memory Management for Block Objects......Page 25
Short Introduction to Grand Central Dispatch......Page 31
Different Types of Dispatch Queues......Page 33
Performing UI-Related Tasks......Page 34
Performing Non-UI-Related Tasks Synchronously......Page 39
Performing Non-UI-Related Tasks Asynchronously......Page 41
Performing Tasks After a Delay......Page 47
Performing a Task at Most Once......Page 50
Running a Group of Tasks Together......Page 52
Constructing Your Own Dispatch Queues......Page 55


πŸ“œ SIMILAR VOLUMES


Concurrent Programming in Mac OS X and i
✍ Vandad Nahavandipoor πŸ“‚ Library πŸ“… 2011 πŸ› O'Reilly Media 🌐 English

<DIV><p>Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X.</

Concurrent Programming in Mac OS X and i
✍ Vandad Nahavandipoor πŸ“‚ Library πŸ“… 2011 πŸ› O'Reilly Media 🌐 English

Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (Gcd) to simplify programming on multicore iOs devices and Mac Os X. Managing

Concurrent Programming in Mac OS X and i
✍ Vandad Nahavandipoor πŸ“‚ Library πŸ“… 2011 πŸ› O'Reilly Media 🌐 English

Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X. Managing

Concurrent programming in Mac OS X and i
✍ Nahavandipoor, Vandad πŸ“‚ Library πŸ“… 2011 πŸ› O'Reilly 🌐 English

Now that multicore processors are coming to mobile devices, wouldn't it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apple's Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X. Managing