Stubs for scheduler in sched.{h,c}.
Initial scheduler implementation. Not thread safe.