Various implementations of the described subject matter provide for the
management of a multi-dimensional sleep queue, such that a group of
threads with a same wake-up time are removed from the multi-dimensional
sleep queue in a deterministic amount of time that is independent of the
number of threads in the removed group. This is significant because it
allows an operating system to schedule other threads for execution within
deterministic/predetermined time parameters. Moreover, the described
subject matter also provides for inserting new threads into the
multi-dimensional sleep queue in a manner that allows other processes to
execute during the thread insertion process.