- the process is a program running in the computer system.
- A program method could be a program in execution.
- A program is an entity to which processors are assigned.
- A program is executed is called a process.
- A process is more than program code.
- A process is not the same as the program.
Process state
A process executes, it changes state. The state of a method is outlined because of the current activity of that method.
The process state contains five states. The states are:-
- New state.
- Ready state.
- Running state.
- Suspended or waiting or blocked state.
- Terminated state.
state of process
The process is being created.
There are many processes in the memory which may want to execute but there is one processor that can execute only one process at a time. So, other processes much have, to wait for the allocation of processors. A process that is ready to execute by the processor is said to be in a ready state.
OR
The process is waiting to be allotted to a processor.
The CPU is currently allocated to the process and the process is in execution.
OR
Instruction is being executed.
A process is in a suspended state or waiting state or blocked state when it lacks some resource other than the CPU. Such processes are not executed until the required suspending condition are not fulfilled.
OR
The process is looking forward to some events to occur.
The process has finished execution.OPERATIONS ON PROCESSES
1. Process creation
First, the process is created. For creating a process involves the following operation:-
Each of the children proceed may create other processes.
The subprocess maybe obtain in two ways:-
2. Process execution
After the process created process is ready for execution.
3. Process termination
Process termination is done after the process executes its last statement and asks the operating system to delete it or exit.
The process termination can be done in the following condition
4. The other operation is:-
|
Post a Comment
Post a Comment