Process management Flashcards
A computer system organized into processes may achieve:
∙ modularity — it is easier to build and maintain;
∙ speedup — it is easier to run on multiple machines
what is a process lifecycle described as?
A state transition diagram
A process control block contains:
∙ the process number (its identity);
∙ the process state (its registers);
∙ the process address space (its memory);
∙ the process I/O (its open files and network connections);
A context switch involves
s saving the machine state in one
process control block and loading the machine state from
another
A process address space has:
∙ a stack section for temporary data;
∙ a heap section for dynamically-allocated data;
∙ a data section for global data;
∙ a text section for program code
The Unix system calls used to spawn a process are:
fork: copies a process address space;
∙ exec: overwrites a process address space with a program;
∙ wait: waits for another process to exit;
∙ exit: terminates a process.
What does a fork do?
copies a process address space
What does a exec do?
overwrites a process address space with a program
Interprocess communication may be by either:
∙ shared memory;
∙ message passing.
Interprocess communication by shared memory involves:
processes writing data to/reading data from an agreed area of memory
Interprocess communication by message passing involves
processes sending messages to/receiving messages from an
agreed mailbox.