[OS] Process State(프로세스 상태 종류)

실행된 프로세스는 상태를 갖고, 프로세스의 상태는 아래와 같습니다.

  • New : The process is being created
  • Running : Instructions are being executed
  • Waiting : The process is waiting for some event to occur (such as an I/O completion or reception of a signal).
  • Ready : The process is waiting to be assigned to a processor.
  • Terminated : The process has finished execution

 

 

  • new -> ready  : 프로세스가 생성되고 있는 단계에서 OS의 승인에 의해 CPU의 할당을 기다리는 상태
  • ready -> running : scheduler dispatch에 의해 CPU의 할당을 받아 명령을 수행
  • running -> ready : cpu의 독점을 방지하기 위해 timout에 의해 ready 상태로 변경
  • running -> waiting : I/O 또는 evnt에의해 waiting 상태로 변경
  • waiting -> readey :  I/O 또는 evnt가 완료되어 다시 ready 상태로 변경
  • running -> terminated : running 상태의 프로세스가 정상적으로 종료되어 terminated 상태로 변경

'IT' 카테고리의 다른 글

[Linux] systemd service 등록하기  (0) 2020.08.01
[Linux] 계정 생성(Feat.skel)  (0) 2020.07.12
[Linux] 패스워드 없이 ssh 접속하기  (0) 2020.07.08
[Linux] sort uniq로 중복 라인 제거하기  (0) 2020.07.07
[Linux] dig 예제 정리  (0) 2020.07.06

댓글

Designed by JB FACTORY

loading