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

Never give up

Blog banner

Access management

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Introduction my self

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Memory managment

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

Facebook marketing

Blog banner

GIS Mapping

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Indian Culture and Tradition

Blog banner

GIS info about Bermuda Triangle

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Topic: Sessions in Operating system

Blog banner

Vulnerability Assessment

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Broken Authentication Attacks

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

Theads

Blog banner

Socket Programming in Java

Blog banner

Elegant fashion style

Blog banner

Optimization of operating system design

Blog banner

Travel: Everything Everywhere!

Blog banner

Memory Management in Operating System

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

"Games and the future"

Blog banner

virtual machines and virtualization

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

Data Lake

Blog banner

ahh wait a min

Blog banner

Data Analytics in Data Science

Blog banner

Types Of scheduling

Blog banner

File Allocation Methods

Blog banner

EID UL FITR

Blog banner

Service design process in ITSM

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

Google classroom

Blog banner

Memory Management

Blog banner

Outlook mail

Blog banner

The Role of cryptography in cyber security

Blog banner