電腦系統的四個組成要素:硬體設備、作業系統、應用程式、使用者,作業系統基於硬體而乘載應用程式,作業系統負責控制並協調分配(硬體)資源給各個應用 系統觀點 作業系統是電腦上的資源分配者,負責管理並有效且公平地分配資源,如:cpu 時間、記憶體空間、檔案儲存空間、I/O 裝置 作業系統是一個控制程式,在開機後持續執行,以管理軟、硬體資源 其 核心 (kernel) 是作業系統運作的基本元件 系統程式 是除了核心以外,幫助系統運作的程式,而其他解決使用者的問題皆稱為 應用程式 Startup 靴帶式程式 (bootstrap program) 存於 唯讀記憶體 (ROM) 或 可消除式唯讀記憶體(EEPROM) 通常稱為韌體 firmware 將作業系統核心 (kernel) 載入記憶體 執行第一個行程- init 協調事件之中斷 (interrupt) System Boot 藉由載入核心來開啟一部電腦的步驟就是 booting 系統 在大部份電腦系統之中,有一小段程式碼叫做靴帶式程式 bootstrap program 或叫做 bootstrap loader 有些電腦系統如 PC 把這個步驟分成兩個階段,先有一個非常簡單的 bootstrap loader 從 (EEP)ROM 載入一個更複雜的 loader,然後再由後者將 OS kernel 載入 loader 通常在 ROM 中因為不常需要改變,基本上與 HW 綁定;OS 則在 disk 中可以接受改變,不與 HW 綁定 從開機到 main() 的執行分三步完成(當執行到 main() 代表已完全進入 OS 接管): 第一步,啟動 BIOS,准備 實模式 下的 中斷向量表 和 中斷服務程序 第二步,從啟動盤加載 OS program 到 RAM,加載 OS program 的工作就是利用第一步中所准備的中斷服務程序實現的 第三步,為執行 32-bit 的 main() 函數做過度工作 啟動 BIOS (loader),准備 實模式 下的 中斷向量表 和 中斷服務...
A. Usage 1. find out the main usage scenarios 2. find out the side usage scenarios and group them into 3 categories- a) need to be considered now. b) will possibly happen in the future but not now. c) more likely will never need B. Scale from the aspects of different practical resources- a. processing resource: which might include CPU and RAM b. network: not only mean something like LAN bandwidth. should be considered from the viewpoint of request/response processing flow. Its corresponding path. So this part may also include something like the data passing in two system module is through RAM or Ethernet cable or crossing Internet. c. storage from the 3 aspects above, we will ask the questions below 1. how many request per second/day/week/month/year by average 2. how many request in peak situation 3. how long expected the current system last being workable 4. to serve each request, how mush correspo...