Outline
Definition: use some keys
Example numeric priority based on $x$
Example Lexicographic Priority
Processes requesting hardware components have prioirty
Linux nice command: -20 highest priority and 19 means lowest prioirty
$ nice -20 ./a.out
template <typename Type>
void Multiqueue<Type>::push(Type const &obj, int, pri) {
if (pri > 0 || pri >=M) {
throw illegal_argument();
}
...
}
*
In [ ]: