Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SjfScheduler

Điều phối CPU theo cơ chế SJF (Shortest Job First). Tiến trình yêu cầu ít CPU hơn thì được thực thi trước. Tiến trình đang chạy không bị cướp CPU.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected inputProcess

inputProcess: Array<Process>

Dãy các tiến trình cần điều phối

Protected interruptTime

interruptTime: number = 0

Protected ioMode

ioMode: IOType = IOType.Multi

Kiểu của thiết bị nhập xuất (IO Device)

Protected preempty

preempty: boolean = false

Protected sortable

sortable: boolean = false

Accessors

IOMode

InputProcess

  • get InputProcess(): Array<Process>
  • set InputProcess(inputProcess: Array<Process>): void

Methods

scheduling