Monday, January 11, 2010

Process memory

Stack segment
  • Parameters
  • Return address
  • Return frame pointer
  • Local variables
Heap segment - dynamic memory allocation

Data segment
  • BSS - uninitialized global data structures
  • Data - initialized global variables and data structures
Text/code segment

All threads within a process share code and data segment.
All threads have their own stack.

No comments:

Post a Comment