Order update tasks so that they attempt to acquire the global semaphore in a reasonable order