Please enable JavaScript.
Coggle requires JavaScript to display documents.
Processes (Concepts (Examples of interrupt :star: (Clock, I/O, Memory…
Processes
Concepts
-
-
-
-
Trace:star:
The behavior of an individual process is shown by listing the sequence of instructions that are executed
-
-
-
Process preempt :star:
Occurs when an executing process is interrupted by the processor so that another process can be executed
-
-
-
OS Requirements
-
-
Allocate resources to processes, and protect the resources of each process from other processes
-
-
OS Control Structures
Memory tables
-
Information
-
-
Any protection attributes of blocks of main or virtual memory, such as which processes may access certain shared memory regions
-
-
-
Process tables:star:
-
Process image
Collection of program, data, stack, and attributes
To execute the process, the entire process image must be loaded into main memory or at least virtual memory
-
-
-
Execution of the OS
Nonprocess kernel
-
The OS has its own region of memory to use and its own system stack for controlling procedure calls and
returns
-
-
Creation and termination
Creation:star:
Reasons
New batch job
The OS is provided with a batch job control stream, usually on tape or disk. When the OS is prepared to take on new work, it will read the next sequence of job control commands
-
-
-
Steps
- 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.
Termination
-
Indicates
-
A user action (e.g. log off, quitting an application)
-
-
-
-