@SCJAllowed(value=INFRASTRUCTURE) class ReleaseQueue extends java.lang.Object
ReleaseQueue class holds the processes
in the PriorityScheduler. insert and
extractMin are O(log n).| Modifier and Type | Field and Description |
|---|---|
(package private) int |
heapSize |
protected int[] |
tree |
| Constructor and Description |
|---|
ReleaseQueue(int size) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
exchange(int a,
int b) |
ScjProcess |
extractMin() |
(package private) void |
heapify(int i) |
void |
insert(ScjProcess obj) |
(package private) int |
left(int i) |
ScjProcess |
minimum() |
(package private) int |
parent(int i) |
(package private) void |
print()
Print out the contents of the priority queue.
|
void |
remove(ScjProcess obj) |
(package private) int |
right(int i) |
int parent(int i)
int left(int i)
int right(int i)
void exchange(int a,
int b)
void heapify(int i)
public void insert(ScjProcess obj)
public ScjProcess minimum()
public ScjProcess extractMin()
public void remove(ScjProcess obj)
void print()