Post

Process Address Space

✅ Process Address Space

when program is run on CPU
process is created
process address space is allocated on memory

✅ Process Address Space Segment

Screenshot 2024-07-25 at 11 59 40

  • Code Segement: save program source code
  • Data Segment: save global vairables
  • Stack Segment: save method, local variables

why divide address space into segments?

to share as much as space as possible
and to save memory usage
stack segment: LIFO, method and local variables

This post is licensed under CC BY 4.0 by the author.