Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundRobinScheduler

Điều phối CPU theo cơ chế Round Robin. Tiến trình vào hàng đợi trước thì được điều phối trước. Tuy nhiên chúng chỉ được chiếm CPU trong độ dài thời gian là Quantum.

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

Private quantum

quantum: number = 1

Lát thời gian (Slice of time)

Protected sortable

sortable: boolean = false

Accessors

IOMode

InputProcess

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

Quantum

  • get Quantum(): number
  • set Quantum(quantum: number): void

Methods

scheduling