P

PrepStack

Processes

A process is a program that is running. The OS (operating system, the main software that runs the computer) keeps a record for each process and switches the CPU (the chip that runs instructions) between processes many times a second. Questions cover states, the process control block (PCB, that record), the context switch, fork and exec (make a process, swap its program), zombie and orphan processes (leftover finished children), and copy-on-write (copy memory only when changed). Example numbers are made up.

After this section you can explain each of these, draw the state diagram, and work out how many processes a chain of fork calls creates.

Topics in this section