The solution shows how the code is fixed.
(upbeat music) … - [Instructor] Hopefully you were able … to solve the challenge. … There are two ways to fix the problem. … The first one is by making the QA concurrent queue … by adding the attribute parameter. … Let's go ahead and do that. … And run our code. … When this is done, the inner block won't have to wait … for the outer block to finish so that it can start. … The second solution is changing the inner block to async. … Let's delete the attribute, … and add async here, and run our code. … As you can see, the outer block is not waiting … for the inner block to complete in order for each to start. … …
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.