• Home
  • About
    • JOOS photo

      JOOS

      Joos's blog

    • Learn More
    • Email
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

[OS 3일차] Linux Run-time Memory Image, Concurrent Processes, Parallel Process, Context Switching, user mode and kernel mode란

15 Jan 2019

Reading time ~1 minute

Linux Run-time Memory Image

memory image

Concurrent Processes and Logical Control Flows

각각의 process들은 그들만의 logical control flow가 있다.

Concurrent Process

  • 프로세스들은 동시에 실행이 뒬 수 있다. physical running parallelism

Logical Control Flows

logical running

Parallel Process

  • multiprocessing중 하나이며 두개 이상의 processor들이 조화를 이룰 때 일어나느 상황이다.
  • 많은 CPU들이

parallelism

Context Switching

kernel

OS code를 관리하는 프로세스들

  • kernel은 따로 분리된 process가 아니다.
  • kernel은 대개 별도의 프로세스가 아니라 사용자 프로세스의 일부로 실행됩니다.

user mode and kernel mode

kernel mode (supervisor mode)

  • mode bit 이 set이라면, process는 여기에서 실행된다.
  • 어떤 memory던 접근이 가능하고 instruction도 모두 실행 가능하다.

user mode

  • mode bit가 set이 아니면, process는 여기에서 실행된다.
  • privileged instruction은 실행이 가능하지 않다.
  • application code를 실행하는 process가 user mode에서 제일 처음 실행된다.

  • user mode에서 kernel mode로 바꾸는 유일한 방법은 kernel mode에서 exception이 일어나거나 exception handler가 실행됬을 때 일어난다.

참고자료: 전체적인 글은 [KUOCW]최린_운영체제(160919) 강의를 들었습니다.
(url)https://www.youtube.com/watch?v=9bkuN7Fj-8o
(강의 slide)https://slideplayer.com/slide/14698319/



computer_scienceOS글또2기process Share Tweet +1