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

Objectives and functions of Operating System...

Blog banner

Natural Language Processing(NLP)

Blog banner

E-security systems | CCTV

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

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

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Dental Problems That Start Small But Should Never Be Ignored

Blog banner

Threads

Blog banner

Deadlocks in Operating System

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

Deadlock

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Bit Coins

Blog banner

CONCURRENCY

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

Access management

Blog banner

Os Virtual Memory

Blog banner

NETSUITE

Blog banner

Indian Culture and Tradition

Blog banner

**THE MUJAWARR: Transforming the Logistics Industry**

Blog banner

OS Assignment 3

Blog banner

PHISHING

Blog banner

A Statistical Analysis of Player Performance and their Value in cricket

Blog banner

LINUX

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Memory Partitioning

Blog banner

Different Types of Data

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

Social Engineering

Blog banner

Disk scheduling

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Network Security Risks

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Direct Memory Access

Blog banner

Memory management and virtual memory

Blog banner

Satellite Based Positioning

Blog banner

DBMS and various career options related to it.

Blog banner