Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Workshop

Quiz

1. What are the three default global concurrent queues?

2. What is a good replacement for locking when using queues?

Quiz Answers

1. Default, low, and high priority.

2. Use serial queues.

Activities

On developer.apple.com, search for sample code using Grand Central Dispatch (GCD). Also on developer.apple.com, search the WWDC videos for sessions demonstrating GCD. Furthermore, look at Apple Developer Forums for discussions. GCD can be intimidating at first, but as you get into it and communicate with other developers, you will become more comfortable with it.

Because concurrency is important to different types of apps and in different ways, you will probably feel more at home if you look at examples and discussions of concurrency for the type of processing that you are doing (processing images or video, handling real-time data streams, and so forth).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial