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

Service design process in ITSM

Blog banner

Mail merge

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

Process Description

Blog banner

Types of Threads

Blog banner

Deadlock and Starvation

Blog banner

Processing Crime and Incident Scenes

Blog banner

Virtual memory

Blog banner

Know your Processors!

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

PPT methodology

Blog banner

Quality check in IT services

Blog banner

What is Virtual Memory

Blog banner

DBMS and various career options related to it.

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

VIRTUAL MACHINES

Blog banner

Threads

Blog banner

Deadlock and Starvation

Blog banner

Data Science in Mental Health Prediction

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

COMPUTER FORENSICS AND GRAPHICS

Blog banner

GUIDE TO GIS

Blog banner

Cache Memory

Blog banner

Life of a 2020-2021 student

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Supervised and unsupervised learning

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

Modern operating system

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Memory Management in Operating System

Blog banner

Save Environment

Blog banner

Social Engineering

Blog banner

Bit Coins

Blog banner

Multiprocessor scheduling

Blog banner

The evolution of OS

Blog banner

Some web vulnerabilities

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

Memory management

Blog banner

Phishing

Blog banner

Deadlock in operating system

Blog banner

Modern Operating System

Blog banner