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

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

PHONE TECHNOLOGY

Blog banner

operating system

Blog banner

Email Privacy

Blog banner

A little bit of salt is all the hash needs!

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

My Favorite Country

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

Deadlock

Blog banner

Instagram

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

IP Address

Blog banner

Software

Blog banner

internet email and it's applications

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

Introduction to GIS

Blog banner

Bulk E-mail software

Blog banner

Big Data Architecture

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Why Oak Tree Hotel Is Arcadia’s Hidden Gem?

Blog banner

Rapido

Blog banner

Data Exfiltration

Blog banner

Business Engineering

Blog banner

Virtual Machine

Blog banner

The Evolution of Operating Systems

Blog banner

Kafka - A Framework

Blog banner

Socket Programming in Java

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Every body is beautiful

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Everything You Need for a Perfect Stay in Arcadia, Florida, USA.

Blog banner

Virtual memory in Operating System

Blog banner

WORKFRONT SOFTWARE

Blog banner

Uniprocessor and Types

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

History of Money

Blog banner

Types of Threads

Blog banner

child Labour

Blog banner

How can parents support a child’s mental health?

Blog banner

Modern Operating System

Blog banner

MUTUAL EXCLUSION

Blog banner