An attempt to wake up the sleeping threads for cancellation when necessary