Check out Single Prioritised Input Queue by Jason Yip. Here is an excerpt:
Problem Context
There are multiple sources for requests to do work which leads to unclear priority OR a de facto prioritisation approach based on who shouted loudest most recently.
Most things seem…
The full article is available here.