pub fn stop_scheduler()
Expand description

What this function does is that it tells the scheduler to stop scheduling any more processes. And start the shutdown process.