Opareting System
Opareting System
IN ASSOCIATION WITH
TASK: A process is said to be a running program that serves as the foundation for all
computation. Explore and state different states that a process can exist in at any given
time. In your exploration, highlight also the process states diagrammatically.
A process is basically a program in execution, or an entity which
represents the basic unit of work to be implemented in the system. In
simpler terms, we write our computer programs in a text file and when
we execute this program, it becomes a process which performs all the
tasks mentioned in the program.
Ready is another state a process goes through, during this phase, the
demand for this program has been brought up, and is hence getting
transformed into a process and kept inside the ready queue. A ready
queue is a place in the primary memory or main memory where all the
processes are kept and which are about to go to the running state.by
default, the process that comes first runs first. Here they are waiting for
their turn to come.
Running is a phase where the ready process is picked up from the ready
queue by CPU, gets assigned to any one of CPU cores and starts to
execute the instruction line. In simpler terms, once the process has been
assigned to a processor by OS scheduler, the process state is set to
running and the processor executes instructions. One of the processes
from the ready state will be chosen by the OS depending on the
scheduling algorithm. Hence, if we have only one CPU in our system, the
number of running processes for a particular time will always be one. If
we have processes running simultaneously.
From the running state, a process can make the transition to the block
or wait state depending upon the scheduling algorithm or the intrinsic
behavior of the process. When a process waits for a certain resource to
be assigned or for the input from the user then the OS move this process
to the block or wait state and assigns the CPU to the other processes.
Wait
A process has merits and demerits too, the merits of a process are that
process state helps to allocate resources more efficiently, proper
management of process state help to prevent crashes and errors, efficient
allocation of CPU time ensures a responsive system and the process
states help us to protect against secure threats and monitoring process
state help us to identify and troubleshoot issues.
The demerits of process state are that the limited number of processes
that can be run simultaneously. Deadlocks can occur in the process and
time, race conditions can cause unpredictable behavior and the use of
process state can increase system complex.
In conclusion, the process states in operating system are used for
managing system resources efficiently. The operating system needs to
keep track of each process’s current state to allocate time, memory and
I/O resources optimally, understanding the different process state can
help developers and system administers design and optimizes systems to
run more efficiently, by managing process state correctly, operating
systems can ensure that the system is responsive, stable and reliable.
REFERENCES