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

Hacking Mobile Platforms

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

Layers Of Blockchain

Blog banner

LTE Technology

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

TRAIN TRAVELING

Blog banner

Evolution of Operating System

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Trends that began during the pandemic

Blog banner

Types of Malware in Cyber Security

Blog banner

Virtual memory

Blog banner

Disk scheduling

Blog banner

Is Brushing After Eating Damaging Your Teeth? (Fact or Myth)

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

7 Perks of Getting Your Teeth Whitening Done Professionally

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

E-mail security

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

The Future of Patola Weaving in a Sustainable Fashion World

Blog banner

Processing Crime and Incident Scenes

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

Some web vulnerabilities

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

Search Marketing In 2026: From Keywords To Credibility And User Intent

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Esri India launches Policy Maps.

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

Deadlocks

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

Importance of education

Blog banner

DATA WRANGLING

Blog banner

Disk scheduling

Blog banner

Fault Tolerance in an Operating System

Blog banner

How to Manage Employees and Tasks in One System (Without Excel)

Blog banner

RAID

Blog banner