wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Threads

profile
Harsh Darji
Aug 15, 2024
0 Likes
0 Discussions
39 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

Evolution of the Microprocesor

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

Memory Management

Blog banner

Fitness

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Why is ITSM important in IT organization?

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Deadlocks in Operating System

Blog banner

The most common internet security threats

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

Vulnerability Assessment

Blog banner

Ubiquitous Computing

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Partnership in Learning: How Parent Involvement Shapes a Child’s Early Education

Blog banner

Smartsheet

Blog banner

Security Issues and Countermeasures

Blog banner

Network Forensics Tools and Techniques

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

GIS info about Bermuda Triangle

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Memory Management

Blog banner

Global versus Indian Mental Health Differences

Blog banner

How to Conquer Depression ?

Blog banner

Riddhi Miyani 53003220140

Blog banner

Evolution of Operating Systems

Blog banner

Multiprocessor and scheduling

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Online Games

Blog banner

Message Passing in OS

Blog banner

Best password managers: Reviews of the top products

Blog banner

PERT Overview

Blog banner

Intrusion Detection System

Blog banner

Child labour

Blog banner

CBSE + International Thinking: How Indian Schools Are Producing World-Ready Students

Blog banner

Processes: Process Description and Control.

Blog banner

Corporate Discipline.

Blog banner

Virtual Memory

Blog banner

SAVE TREES

Blog banner

How To Secure Operating Systems ?

Blog banner