wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Threads

profile
Harsh Darji
Aug 15, 2024
0 Likes
0 Discussions
36 Reads

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 1 otherwise two threads have to context switch for that single CPU.

What is Thread in Operating Systems?

In a process, a thread refers to a single sequential activity being executed. these activities are also known as thread of execution or thread control. Now, any operating system process can execute a thread. we can say, that a process can have multiple threads.

Why Do We Need Thread?

  • Threads run in parallel improving the application performance. Each such thread has its own CPU state and stack, but they share the address space of the process and the environment. 
  • Threads can share common data so they do not need to use inter-process communication 
  • . Like the processes, threads also have states like ready, executing, blocked, etc. 
  • Priority can be assigned to the threads just like the process, and the highest priority thread is scheduled first.
  • Each thread has its own Thread control 
  • . Like the process, a context switch occurs for the thread, and register contents are saved. As threads share the same address space and resources, synchronization is also required for the various activities of the thread.

Components of Threads

These are the basic components of the Operating System.

  • Stack Space
  • Register Set



Comments ()


Sign in

Read Next

Disk cache

Blog banner

Deadlocks

Blog banner

Memory Management

Blog banner

ZOHO

Blog banner

Operating system

Blog banner

Man VS Nature

Blog banner

Health is Wealth

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Not anti-social, but pro-solitude

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Logical and physical address

Blog banner

Malicious softwares

Blog banner

Operating System Objectives and Functions

Blog banner

Developments in Modern Operating Systems

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Pandas Matrix Applications

Blog banner

You'll get to know about Pankaj Negi

Blog banner

GIS info about Bermuda Triangle

Blog banner

Proton mail

Blog banner

1.1 basic elements

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Measuring IT Risk

Blog banner

PPT methodology

Blog banner

Real Time Scheduling

Blog banner

Dal Bafla Recipe

Blog banner

Constrains in service design

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

Virtual Memory

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

Dove’s Real Beauty Campaign- Case Study

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Importance of education

Blog banner

The Five Steps of Data Science

Blog banner

Tools to support CSI activities

Blog banner

Sessions In OS.

Blog banner

Operation system

Blog banner

Deadlock

Blog banner

DATA WRANGLING

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner