13. The Abstraction: Address Spaces Flashcards

1
Q

What are three basic parts of process’s address space?

A

Code, stack and heap.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly