13 - Address Spaces Flashcards
What is the VM system responsible for?
providing the illusion of a large, sparse, private address to each running program
What does each virtual address space contain?
All of a program’s instructions and data
What does the OS do with each virtual memory reference?
Turn them to physical addresses
What is presented to the physical memory in order to fetch or update the desired information?
Physical addresses
What is multiprogramming?
multiple processes are ready to run at a given time, and the OS can switch between them.
Name a benefit of multiprogramming.
increased effective CPU utilization which lead to increase efficiency
Name optimal way to implement time sharing
leave processes in memory while switching between them, allowing the OS to implement time sharing efficiently
Name something about protection
Talk about what you want or don’t want a process to do
You don’t want a process to be able to read or write some other process’s memory
The easy to use abstraction of physical memory is also known as?
Address space
What is the running program’s view of memory in the system?
Address space
What is the ‘code’ of the program otherwise known as, and where is it?
the instructions of the program and they are in the address space
What data structure does the running program use and for what? (First one mentioned)
A stack. Keep track of where it is in the function call chain as well as to allocate local variables and pass parameters and return values to and from routines
What data structure does the running program use and for what? (Second one mentioned)
A heap. for dynamically-allocated, user-managed memory
What are three components in an address space?
code, stack, heap
Is code static or dynamic, and what are the perks of it?
Static. Easy to place in memory and can place it at the top of the address space and know that it won’t need any more space as the program runs.