iOS Development: Threading and Grand Central Dispatch

iOS Development: Threading and Grand Central Dispatch

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 0h 39m | 153 MB

Users expect their iOS apps to be fast and responsive. Grand Central Dispatch (GCD)—a Swift framework that allows you to execute code concurrently on multicore hardware—can help you ensure that your app meets these expectations. In this course, instructor Grace Njoroge helps you get up and running with GCD, explaining how to put code or tasks on threads to speed up your iOS app and make it more responsive to users. She covers asynchronous and synchronous execution, deadlocks, how multithreading keeps apps from stalling while handling heavy operations, how to work with queues, and how GCD factors into all of these topics. Along the way, she shares scenarios that lend a real-world context to these concepts.

Table of Contents

1 iOS development Grand Central Dispatch
2 What you should know
3 Traditional threading
4 What is Grand Central Dispatch
5 Adding multithreading
6 Challenge Optimizing the collection view
7 Solution Optimizing the collection view
8 What are queues
9 The main queue
10 The global queue
11 Developing a custom queue
12 Challenge Download images in a collection view
13 Solution Download images in a collection view
14 What are async and sync programming
15 Dispatching asynchronously
16 Dispatching synchronously
17 Challenge Load images in a collection view
18 Solution Load images in a collection view
19 What are deadlocks
20 Avoiding deadlocks using dispatch async
21 Challenge Resolving a deadlock
22 Solution Resolving a deadlock
23 Digging deeper into GCD’s API