13. The Abstraction: Address Spaces Flashcards
1
Q
What are three basic parts of process’s address space?
A
Code, stack and heap.
1
Q
How and why does OS abstract physical memory?
A
It does so with help of virtual address space and for protection. Virtual address space is a process’s view of memory
2
Q
Where is code segment, stack and heap are placed in a basic non-segmented address space?
A
Code at the start, heap comes next and grows downward, stack at the bottom and grows upward
3
Q
What is pmap() Linux command?
A
It’s command to show memory mapping of a process (allocated regions, RSS, dirty pages, permissions, sizes)