The Wayback Machine - https://web.archive.org/web/20240813073459/https://www.geeksforgeeks.org/thread-control-block-in-operating-system/
Open In App

Thread Control Block in Operating System

Last Updated : 26 Nov, 2019
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Very similar to Process Control Blocks (PCBs) which represents processes, Thread Control Blocks (TCBs) represents threads generated in the system. It contains information about the threads, such as it’s ID and states.

The components have been defined below:

  • Thread ID: It is a unique identifier assigned by the Operating System to the thread when it is being created.
  • Thread states: These are the states of the thread which changes as the thread progresses through the system
  • CPU information: It includes everything that the OS needs to know about, such as how far the thread has progressed and what data is being used.
  • Thread Priority: It indicates the weight (or priority) of the thread over other threads which helps the thread scheduler to determine which thread should be selected next from the READY queue.
  • A pointer which points to the process which triggered the creation of this thread.
  • A pointer which points to the thread(s) created by this thread.


Similar Reads

Relationship between User level thread and Kernel level thread
Introduction: User-level threads and kernel-level threads are two different approaches to implementing thread management in an operating system. User-level threads are managed entirely by the application, without any involvement from the operating system kernel. The application manages the creation, scheduling, and synchronization of threads, using
9 min read
Difference Between Thread ID and Thread Handle
Prerequisite: Thread in Operating System Thread Id is a long positive integer that is created when the thread was created. During the entire lifecycle of a thread, the thread ID is unique and remains unchanged. It can be reused when the thread is terminated. The Thread get_id() method can be studied here where we can see how it's used. Thread Handl
3 min read
Difference between User Level thread and Kernel Level thread
User-level threads are threads that are managed entirely by the user-level thread library, without any direct intervention from the operating system's kernel, whereas, Kernel-level threads are threads that are managed directly by the operating system's kernel. In this article, we will see the overview of the User Level thread and Kernel Level threa
4 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 itself a single thread.process table contains an
2 min read
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 threads can be effective only if the CPU is more than
6 min read
Boot Block in Operating System
Basically for a computer to start running to get an instance when it is powered up or rebooted it need to have an initial program to run. And this initial program which is known as bootstrap needs to be simple. It must initialize all aspects of the system, from CPU registers to device controllers and the contents of the main memory, and then starts
5 min read
Bad Block in Operating system
Bad Block is an area of storing media that is no longer reliable for the storage of data because it is completely damaged or corrupted. We know disk have moving parts and have small tolerances, they are prone to failure. In case when the failure is complete, then the disk needs to be replaced and its contents restored from backup media to the new d
5 min read
Block and Character Devices in Operating System
Device Driver in computing refers to a special kind of software program or a specific type of software application that controls a specific hardware device that enables different hardware devices to communicate with the computer’s Operating System. There are two different ways to access data on a computer. The first is called block-device interface
5 min read
Difference between page and block in operating system
In this article, we will discuss the overview of the page and block in Operating System and then will discuss the differences by mentioning features of both. Let's discuss it one by one. Block Overview :Block is the smallest unit of data storage. It is used to read a file or write data to a file. Block is also a sequence of bits and bytes. Block is
5 min read
Thread States in Operating Systems
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 th
2 min read
Article Tags :
three90RightbarBannerImg