Abstract
In this chapter, we show how to use GCD. At first, we start with a dispatch queue that is a core concept of GCD and show how to add tasks to the queues. After that, we design an API to control queues and tasks. Finally, we also show how to dispatch I/O to control files using GCD.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Kazuki Sakamoto
About this chapter
Cite this chapter
Sakamoto, K., Furumoto, T. (2012). GCD Basics. In: Pro Multithreading and Memory Management for iOS and OS X. Apress. https://doi.org/10.1007/978-1-4302-4117-1_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4117-1_7
Publisher Name: Apress
Print ISBN: 978-1-4302-4116-4
Online ISBN: 978-1-4302-4117-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)