The bit field uses a single value to represent several Boolean states, for example, if we used an 8-bit integer, then we can say that:
17 (decimal) = 00010001 (binary)
Which will mean that the 4th and 8th Boolean values ββare true, where all other logical values ββare false. Only 8 Boolean states can be traced since there are 8 bits.
As we want to track 140 states (1 for each queue, a truth indicating that the queue contains the task), 140 bits are required, and since 140/32 = 4.375, we need at least 5 32-bit integers to store all Boolean states .
source share