wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Process State

profile
Nikhil Singh
Jul 12, 2023
0 Likes
0 Discussions
40 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 Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

How to Manage Employees and Tasks in One System (Without Excel)

Blog banner

I/O Management and Disk Scheduling

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

virtual machines and virtualization

Blog banner

Retiring ISS

Blog banner

Smartsheet

Blog banner

Wedding photographer

Blog banner

Big Data Architecture

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

Cache Memory in Operating Systems

Blog banner

Types of Malware in Cyber Security

Blog banner

File management -disha parekh

Blog banner

Workplace mental health: A Psychological Perspective on Employee Well-being and Organizational Growth

Blog banner

Why am I never satisfied with my Life?

Blog banner

Is Your Password Complex Enough?

Blog banner

Virtual memory

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

File management

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

Direct memory access (DMA)

Blog banner

BENIFITS OF YOGA

Blog banner

GIS

Blog banner

Data Visualization- Importance and tools (Tableau,Power BI, Matplotlib)

Blog banner

Firewall in Computer Network

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Who decides your overthinking, anyway?

Blog banner

ZOHO

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

INTRANET

Blog banner

Music

Blog banner

Supervised and unsupervised learning

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Risk factors in service transistion

Blog banner

USPS mail

Blog banner

Fashion design

Blog banner

OS Assignment-3

Blog banner

Fitness regime by Deepesh

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Process states

Blog banner