Implemented switch, wakeup, broadcast, sleep_on, sleep_cancellable_on in sched.c