Thread States in Operating Systems Last Updated : 25 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report When a thread moves through the system, it is always in one of the five states: (1) Ready (2) Running (3) Waiting (4) Delayed (5) Blocked Excluding CREATION and FINISHED state. When an application is to be processed, then it creates a thread. It is then allocated the required resources(such as a network) and it comes in the READY queue. When the thread scheduler (like a process scheduler) assign the thread with processor, it comes in RUNNING queue. When the process needs some other event to be triggered, which is outsides it's control (like another process to be completed), it transitions from RUNNING to WAITING queue. When the application has the capability to delay the processing of the thread, it when needed can delay the thread and put it to sleep for a specific amount of time. The thread then transitions from RUNNING to DELAYED queue. An example of delaying of thread is snoozing of an alarm. After it rings for the first time and is not switched off by the user, it rings again after a specific amount of time. During that time, the thread is put to sleep. When thread generates an I/O request and cannot move further till it's done, it transitions from RUNNING to BLOCKED queue. After the process is completed, the thread transitions from RUNNING to FINISHED. The difference between the WAITING and BLOCKED transition is that in WAITING the thread waits for the signal from another thread or waits for another process to be completed, meaning the burst time is specific. While, in BLOCKED state, there is no specified time (it depends on the user when to give an input). In order to execute all the processes successfully, the processor needs to maintain the information about each thread through Thread Control Blocks (TCB). Comment More infoAdvertise with us Next Article States of a Process in Operating Systems T Tarun_Singhal Follow Improve Article Tags : Operating Systems GATE CS mutli-threading Processes & Threads Similar Reads Thread in Operating System A thread is a single sequence stream within a process. Threads are also called lightweight processes as they possess some of the properties of processes. Each thread belongs to exactly one process.In an operating system that supports multithreading, the process can consist of many threads. But threa 7 min read Thread Models in Operating System A thread is a light weight process which is similar to a process where every process can have one or more threads. Each thread contains a Stack and a Thread Control Block. There are four basic thread models : 1. User Level Single Thread Model : Each process contains a single thread.Single process is 2 min read Operating Systems Structures The operating system can be implemented with the help of various structures. The structure of the OS depends mainly on how the various standard components of the operating system are interconnected and merge into the kernel. This article discusses a variety of operating system implementation structu 8 min read Operating Systems | Set 6 Following questions have been asked in GATE 2011 CS exam. 1) A thread is usually defined as a 'light weight process' because an operating system (OS) maintains smaller data structures for a thread than for a process. In relation to this, which of the followings is TRUE? (A) On per-thread basis, the 4 min read States of a Process in Operating Systems In an operating system, a process is a program that is being executed. During its execution, a process goes through different states. Understanding these states helps us see how the operating system manages processes, ensuring that the computer runs efficiently. Please refer Process in Operating Sys 11 min read Operating Systems | Set 16 Following questions have been asked in GATE CS 2005 exam. 1) Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPUs having explicit I/O instructions, such I/O protection is ensured by having the I/O instructions privileged. In a CPU with memory mapped I 4 min read Like