Multithreading is about keeping a long-running process off the main thread. This is important in order to have a great user experience. You should know what multithreading is in order to have an app that doesn't stall while it's doing heavy operations such as image downloading.
- [Instructor] We cannot talk about Grand Central Dispatch … without talking about multithreading. … UI tasks are run on the main thread. … If you try to do any time consuming tasks … on the main thread, then your app will freeze or hang, … and this is not a good user experience. … Suppose a new item just dropped, … and everyone is flooding the vendor's website to shop. … The servers need to handle different requests … from different users. … All these requests will be handled … by different, unique threads. … And when an item is sold out, the users need to be updated … on the spot. … This is what you call multithreading. … Multithreading allows multiple tasks … to be executed at the same time. … It does so by allowing the processor … to create concurrent threads to switch between. … The switch happens fast, and that's why you don't notice it. … You might think that the two threads you created … are executing at the same time, but that's not the case. … There are three different kind of threads, …
Skill Level Intermediate
1. Evolution of GCD
2. Working with Queues
3. Asychronous vs. Synchronous Execution
4. Concurrency vs. Parallelism
What are deadlocks?1m 21s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.