Prevent context switch when there is only one prunning process, reset the memory before loading a new process instead of deallocating the old process