[Operating System Cheat sheet] — Basic Concept

Leon .
Apr 4, 2021

--

  1. Computer System Structure
  2. OS 所擔任的角色以及目的
  3. CPU 延遲時間過長原因與解決策略
  4. Different type of OS

Computer System Structure

主要由4個部分所組成 :

  1. Hardware : (CPU,Memory,I/O devices)
  2. Operating System : (RAM,Shared by User)
  3. Application Programs+System Program
  4. Users
恐龍本圖例
Other Version

Note.

“Bare machine” : 純粹只有硬體組成,其上無其他OS及System Program

“Extended machine”: Bare machine+OS(or System Program)或APP

OS ' s Role

  1. 提供一個讓User 易於操作電腦之溝通介面
  2. 提供一個讓User Program易於執行之環境
  3. 作為一個 Resource(資源) 的管理者協調分配 Resource(CPU、Memory 、I/O) , 期望Resource可被有效利用
  4. 作為一個監督者,監控所有Process 執行,避免Process 之有意或無意之 破壞,造成 System重大危害

追求『公平』與『效率』,雖然兩者基本上是矛盾的

(e.g: FIFO(公平)與SJF (效率))

CPU 延遲時間過長原因與解決策略

Different Type of OS

Multi-programing

Mechnism vs Policy

Mechnism 和 Policy 必須分開。

Mechanism and policy must be separate to ensure that systems are easy to modify. No two system installations are the same, so each installation may want to tune the operating system to suit its needs. With mechanism and policy separate, the policy may be changed at will while the mechanism stays unchanged. This arrangement provides a more flexible system.

--

--

Leon .
Leon .

Written by Leon .

Record my life experience and knowledge , keep enthiusastic attitude to explore the world , that’s what I live for.

No responses yet