Priority Set of up to 64 elements for building various schedulers. More...
#include <qpset.h>
Data Fields | |
| QPSet8 | super |
| 8-bit superset of 8-bit subsets | |
| QPSet8 | subset [8] |
| subsets representing elements in the set as follows: subset[0] represent elements 1..8 subset[1] represent elements 9..16 subset[2] represent elements 17..24 subset[3] represent elements 25..32 subset[4] represent elements 33..40 subset[5] represent elements 41..48 subset[6] represent elements 49..56 subset[7] represent elements 57..64 | |
Priority Set of up to 64 elements for building various schedulers.
The priority set represents the set of active objects that are ready to run and need to be considered by the scheduling algorithm. The set is capable of storing up to 64 priority levels.
The priority set allows to build cooperative multitasking schedulers to manage up to 64 tasks. It is also used in the Quantum Kernel (QK) preemptive scheduler.
Definition at line 96 of file qpset.h.
8-bit superset of 8-bit subsets
Each bit in the super.bits set represents a subset (8-elements) as follows:
bit 0 in super.bits is 1 when subset[0] is not empty
bit 1 in super.bits is 1 when subset[1] is not empty
bit 2 in super.bits is 1 when subset[2] is not empty
bit 3 in super.bits is 1 when subset[3] is not empty
bit 4 in super.bits is 1 when subset[4] is not empty
bit 5 in super.bits is 1 when subset[5] is not empty
bit 6 in super.bits is 1 when subset[6] is not empty
bit 7 in super.bits is 1 when subset[7] is not empty
1.6.3