What is Process

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

process state

  • new : process ์ƒ์„ฑ
  • ready : process ๋Œ€๊ธฐ (ํ• ๋‹น๋˜๊ธฐ ์ „)
  • running : process ๋™์ž‘
  • waiting : process ๋Œ€๊ธฐ (I/O๋‚˜ event์— ์˜ํ•ด)
  • terminated : process ์ข…๋ฃŒ

running์€ ํ•œ์ˆœ๊ฐ„์— ํ•œ process๋งŒ ๊ฐ€๋Šฅ



ยฉ 2017. All rights reserved.

Powered by Hydejack v6.6.1