The functions of the various components of a process in memory are:
- Heap : This is used for dynamic allocation of memory
- Code and text: This comprises of the compiled program
- Stack: This is used for local variable and return addresses
- Data: This stores global and static variables