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

bulk email software

Blog banner

Importance Of Education.

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Memory Management

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

The Laws of Karma

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

Decoding Confusion Matrix

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Hacking Mobile Platforms

Blog banner

Scheduling in Operating Systems

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

What is Packet Filtering?

Blog banner

Virtual Machine

Blog banner

Spotify

Blog banner

Natural Language Processing(NLP)

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Cyber Attacks -- Trends Patterns and Security Countermeasures

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

Im Photographer

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

Fitness

Blog banner

RAID

Blog banner

Understanding Input Based Keylogger Activation Systems: Risks and Mitigation

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

LinkedIn

Blog banner

10 Unknown facts about India's Independence

Blog banner

What are Tenders its various types

Blog banner

Title: Network Sniffing Techniques: Uncovering the Secrets of Data Transfer

Blog banner

Deadlocks

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

Evolution of Operating system.

Blog banner

FRIENDSHIP

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner