wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Process State

profile
Nikhil Singh
Jul 12, 2023
0 Likes
0 Discussions
39 Reads

States of a Process in Operating Systems

A process has several stages that it passes through from beginning to end. There must be a minimum of five states. Even though during execution, the process could be in one of these states, the names of the states are not standardized. Each process goes through several stages throughout its life cycle.

 

Process States in Operating System

The states of a process are as follows: 

 

New (Create): In this step, the process is about to be created but not yet created. It is the program that is present in secondary memory that will be picked up by OS to create the process.

Ready: New -> Ready to run. After the creation of a process, the process enters the ready state i.e. the process is loaded into the main memory. The process here is ready to run and is waiting to get the CPU time for its execution. Processes that are ready for execution by the CPU are maintained in a queue called ready queue for ready processes.

Run: The process is chosen from the ready queue by the CPU for execution and the instructions within the process are executed by any one of the available CPU cores.

Blocked or Wait: Whenever the process requests access to I/O or needs input from the user or needs access to a critical region(the lock for which is already acquired) it enters the blocked or waits for the state. The process continues to wait in the main memory and does not require CPU. Once the I/O operation is completed the process goes to the ready state.

Terminated or Completed: Process is killed as well as PCB is deleted. The resources allocated to the process will be released or deallocated.

Suspend Ready: Process that was initially in the ready state but was swapped out of main memory(refer to Virtual Memory topic) and placed onto external storage by the scheduler is said to be in suspend ready state. The process will transition back to a ready state whenever the process is again brought onto the main memory.

Suspend wait or suspend blocked: Similar to suspend ready but uses the process which was performing I/O operation and lack of main memory caused them to move to secondary memory. When work is finished it may go to suspend ready.


Comments ()


Sign in

Read Next

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Telegram and it's features

Blog banner

Types of Threads

Blog banner

Kernel in Operating System

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

How return on investment is defined in IT services

Blog banner

Real-time Scheduling - 53003230061

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

Email Privacy

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

Network Security Risks

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

ProofHub

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

Wrike

Blog banner

Big Data Architecture

Blog banner

differentiate thinking humanly and rationally

Blog banner

Paid Email

Blog banner

Latest Email Marketing Techniques

Blog banner

Tools to support CSI activities

Blog banner

Deadlock

Blog banner

The most common internet security threats

Blog banner

INTERRUPTS

Blog banner

Technological Advancement

Blog banner

Lucidchart

Blog banner

MOBILE DEVICE FORENSIC

Blog banner

Disk Management

Blog banner

Why Are So Many Adults Getting Diagnosed with ADHD?

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Preparing Students for Higher Education: How International Schools Shape Future Success

Blog banner

10 Signs your Computer has Virus

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

PERSONAL STORIES

Blog banner

RAID

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

Blog on health and fitness

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

Sage business cloud accounting

Blog banner

Paralysis/Paralysis Stroke

Blog banner