Open
Description
Priority queues are ubiquitous. I think it would make sense to have one here as it would be useful for scheduling, be it at an actual scheduler level or much higher, e.g. in event loop, which should prioritise user input over some compute.
There is a lot of literature. Probably a good place to start is the chapter on priority queues in The Art of Multiprocessor Programming.
Activity