Abstract
Memory management is part of a more general problem in programming called resource management. Every computer system has finite resources for a program to use. These include memory, open files, and network connections. If you use a resource, such as by opening a file, you need to clean up after yourself (in this case, by closing the file). If you keep on opening files but never close them, you’ll eventually run out of file capacity. Think about your public library. If everyone borrowed books but never returned them, eventually the library would close because it would have no more books.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Waqar Malik
About this chapter
Cite this chapter
Malik, W. (2015). Memory Management and ARC. In: Learn Swift on the Mac. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0376-7_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0376-7_14
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0377-4
Online ISBN: 978-1-4842-0376-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books