Systems Design & Programming OS Essentials CMPE 310 1 (Feb. 3, 2002)
UMBC
U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6Processes and Tasks What comprises the state of a running program (a process or task)? If a second process, P2, is to be created and run (not shown), then the state of P1 must be saved so it can be later resumed with no side-effects. Since only one copy of the registers exist, they must be saved in memory. We’ll see there is hardware support for doing this on the Pentium later. Microprocessor DRAM Address bus Data bus Control P1 stack P1 Code P1 Data P1’s state by the register values, OS data structures, and the process’s data and stack segments. OS code and data The STATE of a task or process is given EAX EBX ECX EDX EBP ESP EDI ESI EIP EFlags CS SS DS ES FS GS ... code/data cache special caches