1. Queue

2. Operation

Untitled

3. Implementation

Array-based Queue

Two variables to keep track

Untitled

r : the index where you can insert a new element

= (f + sz) % N, N = the size of the array

Untitled

Untitled

Untitled

4. Application

Round Robin Schedulers

4. ETC