[OS] Process switching 과정(Change of process state)

2023. 2. 26. 16:02·CS/OS

1. Save the context of the processor

현재 프로세서의 상태(pc값, cpu의 레지스터 등)을 pcb에 저장한다.

 

2. Update the process control block of the process currently in the ( running ) state

현재 실행(running)중인 프로세스를 blocked/ ready/ suspend로 바꾼다.

 

3. Move the process control block of this process to the appropriate queue

 

4. Select another process for execution

들어올 프로세스를 고른다(스케줄링에 따라)

 

5. Update the process control block of the process selected

골라진 프로세스의 pcb를 업데이트한다.

 

6. Update memory management data structures

 

7. Restore the context of the processor to that which existed at the time the selected process was last switched out

들어올 프로세스를 running으로 바꾼다.

 

 

'CS > OS' 카테고리의 다른 글

[OS] The Memory Hierarchy  (0) 2023.02.26
[OS] 컴퓨터 시스템의 요소  (0) 2023.02.26
[OS] Deadlock 탐지를 위한 Coffman Algorithm 사용법  (0) 2023.02.26
[OS] Deadlock 없애는 방법2, 3 - Avoid Deadlock, Detect Deadlock  (0) 2023.02.26
[OS] Deadlock 없애는 방법1 - prevent deadlock  (0) 2023.02.26
'CS/OS' 카테고리의 다른 글
  • [OS] The Memory Hierarchy
  • [OS] 컴퓨터 시스템의 요소
  • [OS] Deadlock 탐지를 위한 Coffman Algorithm 사용법
  • [OS] Deadlock 없애는 방법2, 3 - Avoid Deadlock, Detect Deadlock
LOGPOSE 로그포스
LOGPOSE 로그포스
다음 섬으로 향하고자 이번 섬을 기록하는 특수한 나침반
  • LOGPOSE 로그포스
    LOGPOSE
    LOGPOSE 로그포스
  • 전체
    오늘
    어제
    • 분류 전체보기 (135)
      • [Unity] Projects & Study (27)
        • VR 멀티 항만 시뮬레이션 게임 (1)
        • HandiLab - AR 과학 실험 (10)
        • 우물 속에서 - VR 공포 게임 (2)
        • Loop - Interactive Movie (8)
        • Simple Platformer Game (4)
      • CS (67)
        • Algorithm & Data Structure (23)
        • Design Pattern (3)
        • Computer Graphics (23)
        • OS (16)
      • Java (9)
      • Cloud (3)
      • Docker (4)
      • Spring (2)
      • AWS (3)
      • LLM (3)
      • Kubernetes (6)
      • Programming Paradigm (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    프로그래밍 패러다임
    VR멀티게임
    2D
    Unity AR
    Unity
    함수형 프로그래밍
    game
    함수형
    VR게임
    ovr
    개발
    Photon
    Unity앱개발
    AR
    선언형 프로그래밍
    VR
    함수형 패러다임
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
LOGPOSE 로그포스
[OS] Process switching 과정(Change of process state)
상단으로

티스토리툴바