Add mutual exclusion to ready queue operations