Skip to main content

Memory Management and ARC

  • Chapter
Learn Swift on the Mac
  • 1553 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics