"jinghuan @Dave, also if there is multiple tasks waiting on a resource such as a lock, we might want some tasks that have higher priority to run first." . . . .