Computer Science/OS

운영체제 2강 연습문제

박붕어 2023. 11. 21. 21:01

2.5 What is the purpose of the Command interpreter? Why is it usually seperate from the kernel? Would it be possible for the user to develope a new Command interpreter using the System Call interface provided by the Operating System?

Purpose : User나 File로부터 Command를 받아 실행할 때, 한개 이상의 System Call을 호출한다. Kernel이 아닌 Command Interpreter가 command를 받아 처리한다.

Command Interpreter가 변결될 수 있어 Kernel과 Command Interpreter를 독립적으로 분리한다.

User는 OS에서 제공하는 System Call을 사용하여 새로운 Interpreter를 개발할 수 있다.

2.6 What are the two models of interprocess communication? What are the strengths and weakness of the two approaches?

Shared Memory방식과 Message Passing방식

  • Shared Memory :
    • 장점 : 속도가 빠르다. 더 편리하다.
    • 단점 : 보안 문제가 발생할 수 있다. 같은 메모리 주소를 사용하는지 보장할 수 없다. 동기화의 문제가 있다.
  • Message Passing :
    • 장점 : 작은 데이터를 전송하는데 효율적이다. 충돌이 일어나지 않는다. 구현이 쉽다.
    • 단점 : Shared Memory방식에 비해 느리다.

2.9 In what ways is the modular kernel approach similar to the layered approach? In What ways does it differ from the layered approach?

  • 유사점 : layer간 독립적, module간 독립적이다. (영향을 주고받지 않는다.) 다른 module 또는 layer의 기능을 가져와 사용할 수 있다.
  • 차이점 : layered approach에서는 아래 Layer에서 위 Layer의 기능을 가져와 사용할 수 없다. layered approach에서는 layer를 뛰어넘어 기능을 가져올 수 없다. 바로 아래의 layer의 기능만 사용할 수 있다.

2.11 What is the relationship between a guest Operating System and a host Operating System in a system like VMWare? What factors need to be considered in choosing the host Operating System?

host OS : 직접 하드웨어 위에서 동작하는 OS

guest OS : host OS위 가상화된 환경에서 동작하는 OS

host OS는 guest OS의 기능을 지원할 수 있는 Interface를 제공해야한다.

A host operating system should be as modular and thin as possible to allow the virtualization of the hardware to be as close to the physical hardware as possible, and so that dependencies that exist in the host operating don't restrict operation in the guest operating system.

'Computer Science > OS' 카테고리의 다른 글

Processes(2)  (2) 2023.11.24
Processes(1)  (0) 2023.11.24
Operating System Structures(2)  (0) 2023.11.21
Operating System Structures (1)  (0) 2023.11.20
운영체제 1강 연습문제  (1) 2023.11.20