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

Two major obstacle to India’s economic growth: Twin Balance Sheet and Lower Private Investments

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

Understanding Endometriosis and Its Psychological Impact on Quality of Life

Blog banner

10 Interesting Facts about Death Note

Blog banner

What is metaverse?

Blog banner

Social media

Blog banner

Data Warehousing

Blog banner

Starvation

Blog banner

Basic Security For SOAP Services

Blog banner

Different Types of Data

Blog banner

Dental Problems That Start Small But Should Never Be Ignored

Blog banner

Blockchain Security Technique

Blog banner

Atlantis - The Lost Island.........

Blog banner

Elegant fashion style

Blog banner

GIS in Mapping and landslide alert in Bangladesh

Blog banner

My Favorite Country

Blog banner

Theads

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

Outlook mail

Blog banner

Virtual machine and virtualizing

Blog banner

What is Network Security?

Blog banner

Virtual memory

Blog banner

PYTHON

Blog banner

Deadlock

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Sagar Parikrama

Blog banner

Instagram

Blog banner

COMMUNICATION

Blog banner

8 Reasons Why You Must Try Digital Marketing

Blog banner

Booting Process In Operating System

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Supervised and unsupervised learning

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Tools to support CSI activities

Blog banner

Threads

Blog banner

Deadlocks in Operating Systems

Blog banner

Spyware

Blog banner

Types of Big Data

Blog banner

Hubspot

Blog banner

Article on team management software

Blog banner

Pipedrive

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner