Context switchTheexchange of registerinformation that occurswhen one process isremoved from the CPUand another takes itsplaceNonpreemptive sched-ulingCPU schedulingthat occurs when thecurrently executingprocess gives up the CPUvoluntarilyPreemptive schedulingCPU scheduling thatoccurs when the oper-ating system decides tofavor another process,preempting the currentlyexecuting process10.4CPU Scheduling335one for each process in that state. When a process moves from one state toanother, its corresponding PCB is moved from one state list to another inthe operating system. A new PCB is created when a process is first created(the new state) and is kept around until the process terminates.The PCB stores a variety of information about the process, including thecurrent value of the program counter, which indicates which instruction inthe process is to be executed next. As the life cycle indicates, a process maybe interrupted many times during its execution. At each point, its program
This is the end of the preview.
access the rest of the document.