Design Event Manager
Maintain active events with priorities, change a priority, and remove the highest one with ties broken by the smaller id.
Maintain active events with priorities, change a priority, and remove the highest one with ties broken by the smaller id.