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

Google App Engine

Blog banner

Telegram and it's features

Blog banner

Uniprocessor scheduling

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Information Technology In E- Commerce

Blog banner

EMAIL INVESTIGATION

Blog banner

Love is in air.....

Blog banner

VIRTUAL MACHINES

Blog banner

DATA VAULT

Blog banner

DIGITAL ECONOMY

Blog banner

differentiate thinking humanly and rationally

Blog banner

Stop Racism

Blog banner

Marvel Cinematic Universe

Blog banner

VIRTUAL MACHINES

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Mail merge

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

Service tax applied on sanitary pads and not condoms

Blog banner

I/O Management and Disk Scheduling

Blog banner

Memory Partitioning

Blog banner

Modern operating system

Blog banner

How the mobile IP is used in GSM architecture.

Blog banner

semaphores in os

Blog banner

Memory management

Blog banner

Process, process creation and process termination

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

Guidelines for a low sodium diet.

Blog banner

Constrained Management in IT

Blog banner

This too shall pass

Blog banner

Health and fitness

Blog banner

Top 10 Logos and their meanings

Blog banner

Cache Memory

Blog banner

Raid and levels of raid.

Blog banner

note taker app

Blog banner

Precision-Recall in Data Science

Blog banner

OS Assignment 3

Blog banner

Explain Multiprocessors

Blog banner

OPERATING SYSTEM

Blog banner

BUFFER OVERFLOW_142

Blog banner

BharatPe

Blog banner

Virtual memory

Blog banner