This preview shows page 1. Sign up to view the full content.
Unformatted text preview: sign of hardware exceptions, assemblers, linkers, loaders, shared objects, ﬁles, and processes. Understanding virtual memory will help you better understand how systems work in general. Virtual memory is powerful. Virtual memory gives applications powerful capabilities to create and destroy chunks of memory, map chunks of memory to portions of disk ﬁles, and share memory with other processes. For example, did you know that you can read or modify the contents of a disk ﬁle by reading and writing memory locations? Or that you can load the contents of a ﬁle into memory without doing any explicit copying? Understanding virtual memory will help you harness its powerful capabilities in your applications. Virtual memory is dangerous. Applications interact with virtual memory every time they reference a 485 ¯ 486 CHAPTER 10. VIRTUAL MEMORY
variable, dereference a pointer, or make a call to a dynamic allocation package such as malloc. If virtual memory is used improperly, applications can suffer...
View Full Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
- Spring '10
- The American