Implements idle and initial process initializations, along with process switch procedure