CSC209H5 Chapter Notes - Chapter 7: Parent Process, Child Process, System Call
Document Summary
Csc209h5s - software programming and tools (winter 2018) Program - the executable instructions of a program. Either human readable source code or compiled machine code. Includes machine code of the program, information about the current state of process (instructions to execute next), or current values of variables in memory. When a program is loaded into memory, a memory would have the following layout structure. Globals - hold current value of other variables in the program that are considered global Heap - hold current value of other variables in the program. Stack - tells us which function we are executing and holds values of local variables. Process control block/task control block - stores current values of important registrars and open file descriptors. Pid (process id) - a unique identifier for a process. Pc - program counter - identifies the next instruction to be executed. Sp - stack pointer (identifies the top of a stack)