Process Control Flashcards
Specific processes require certain privileges in order to protect the hardware and the OS from impending malfunction.
Modes of execution
This is referred as the less-privileged mode, since user programs execute in this mode
User mode
This is referred to as the more-privileged mode, where the software has complete control of the processor and its instructions, registers, and memory
Kernel mode
Process creation can proceed as follows:
- Assign a unique process identifier to the new process
- Allocate space for the process
- Initialize the process control block
- Set the appropriate linkages
- Create or expand other data structures
When the operating system controls the currently running processes, a process switch may occur at any time. Thus, the OS needs to provide a regaining control feature if a process is blocked, suspended, or paused.
Process switching
Any computer system must provide means for a process to indicate its completion
Process termination
A batch job may include a … or an …
halt instruction or OS service call for termination