COSI 131a Lecture Notes - Lecture 4: Parent Process
Document Summary
Processes are not always running; they change state during execution. Processes are represented in memory with current state via process control block (pcb) data structures. When a process is switched out its state is copied to a pcb, while the switched in process has its state copied from a. The process scheduler selects the process for program execution on the cpu. The submitted processes can be spooled into disk for later execution. The long term scheduler moves processes from disk to main memory, while the short term scheduler selects one from memory and allocates the cpu to it. Unlike the short term scheduler, the long term scheduler is invoked infrequently and can be slow. The issues of the long term scheduler can be resolved with the. Independent processes are not affected by the execution of other processes. Processes can instead be designed to be cooperative. This requires interprocess communication (ipc) to exchange data and info.