Text section : the executable code
Data section : global variables
Heap section : memory that is dynamically allocated during program run time
(프로그램이 실행되는 동안 동적으로 할당된 메모리)
Stack section
temporary data storage when invoking functions
(함수 호출 시 임시 데이터 저장공간)
such as function parameters, return addresses, and local variables

Layout of a process in memory

Diagram of Program and Process
New : the process is being created
Running : Instructions are being executed
****(프로그램을 실행시켜 CPU가 명령어를 실행할 준비가 된 상태)
Waiting : the process is waiting for some event to occur
Ready : the process is waiting to be assigned to a processor
(프로세스가 프로세서에 할당되기를 기다리는 상태. 다른 프로세스를 종료해도 바로 프로세서를 점유 하지 못함.)