OS - Parallel between heap/stack and pages

0

I'm studying for an exam on Operating Systems. I am working on the chapter concerning virtual memory.

I'm getting really confused making a parallel between this very common schema describing a process, and the pages that are allocated in virtual memory.

Are these pages allocated to store the entire process ? Are the pages actually free space for the heap ? Or the stack ?

I really cannot link those two concepts

Arthur Attout

Posted 2018-01-14T20:27:49.067

Reputation: 73

Each individual process may have one or more virtual pages ... – DavidPostill – 2018-01-14T20:35:45.680

So does that mean that pages in virtual memory are only allocated for the data used by the process ? – Arthur Attout – 2018-01-14T20:38:52.360

1No. The OS puts whatever it wants in virtual memory. That can include program code as well as data. – DavidPostill – 2018-01-14T20:39:49.100

Read https://en.wikipedia.org/wiki/Virtual_memory. It covers paged virtual memory :)

– DavidPostill – 2018-01-14T20:40:44.810

No answers