1. A method performed by a scheduler of a process executing on a computer system, the method comprising: detecting that a first execution context blocked in a first critical region while executing on a processing resource of the scheduler; and ensuring that the first execution context resumes execution on the processing resource in response to the first execution context becoming unblocked.