How to deal with two tasks with the same virtual time