What is Process
on Operating system
Process!!!๐
a program in execution, active
registers, program counter text section, data section, stack, heap ํฌํจ
- text section : program code
- program counter : represent current activity
- data section : contain global variables
- stack : contain temporary data
- heap : memory during process runtime
Program
excutable file, passive
When program is loaded into memory, It becomes Process.
Process 2๊ฐ ์ฌ์ฉ์ , ๊ฐ๊ฐ text section, data, heap, stack ๊ฐ์ง
ex) Process A๊ฐ ํน์ ์ฃผ์ ๊ฐ์ ๋ณ๊ฒฝํด๋ Process B๋ ์ํฅ์ ๋ฐ์ง ์์.
Process state
- new : process ์์ฑ
- ready : process ๋๊ธฐ (ํ ๋น๋๊ธฐ ์ )
- running : process ๋์
- waiting : process ๋๊ธฐ (I/O๋ event์ ์ํด)
- terminated : process ์ข ๋ฃ
running์ ํ์๊ฐ์ ํ process๋ง ๊ฐ๋ฅ