What is Process?

The memory layout of a process is divided into multiple sections

  1. Text section : the executable code

  2. Data section : global variables

  3. Heap section : memory that is dynamically allocated during program run time

    (프로그램이 실행되는 동안 동적으로 할당된 메모리)

  4. Stack section

    1. temporary data storage when invoking functions

      (함수 호출 시 임시 데이터 저장공간)

    2. such as function parameters, return addresses, and local variables

Layout of a process in memory

Layout of a process in memory

Untitled

Diagram of Program and Process

As a process executes, it changes its “state”