CPU-I/O Burst Cycle

Introduction

一個 process 的執行並不是 CPU 一路運算到底,而是在兩種狀態間切換:

  • CPU burst:Process 正在執行 CPU 指令
  • I/O burst:Process 正在等待 I/O operation 完成

CPU & I/O Bound

CPU Bound Program

這類程式的執行時間取決於 CPU 速度,並且其通常有很多很短的 CPU burst

I/O Bound Program

這類程式的執行時間取決於 I/O 速度,並且他們通常有一些很長的 CPU burst

CPU burst time prediction