wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Threads

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

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

Blog banner

Cyber Security in Data Breaching

Blog banner

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

Blog banner

MoSCoW METHOD IN DATA SCIENCE

Blog banner

Virtual Machine

Blog banner

Microsoft Word

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Assignment-3

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

The Real Reason Patola Outfits Come at a Premium Cost

Blog banner

The Best Photography Spots in and Around Arcadia, Florida

Blog banner

Worms, viruses and Bots

Blog banner

Starvation

Blog banner

Explain website hacking issues

Blog banner

Social Media.

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Importance of Website

Blog banner

A Traveller’s Guide to Offbeat Places in Arcadia, Florida

Blog banner

PERSONAL STORIES

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

Mobile Survey

Blog banner

City of Mumbai (Bombay):

Blog banner

1.1 basic elements

Blog banner

MODERN OPERATING SYSTEM

Blog banner

INTRANET

Blog banner

Cache memory

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

A Weekend of Wildlife, Rivers, and Relaxation in Southwest Florida

Blog banner

How a Balanced Diet Supports Healthy Ageing and Overall Wellness

Blog banner

How Does Preschool Help Children Become Better Decision Makers?

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

File management

Blog banner

Why Your Daily Meal Routine Matters More Than Occasional Healthy Eating

Blog banner

Getting started with Android Studio

Blog banner

Hey Aryan here

Blog banner

Explain DBMS in Brief

Blog banner

Memory management

Blog banner

Yoga in INDIA and ABROAD

Blog banner