Priority queue with task categorisation support