wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Threads

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

Operating system evolution

Blog banner

Memory management

Blog banner

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

Blog banner

Microsoft Word

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

The New Role of Social Media Managers: Beyond Posting Content

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

semaphores

Blog banner

?How long does wisdom tooth pain last?

Blog banner

RAID

Blog banner

Processes: Process Description and Control.

Blog banner

Importance of internet

Blog banner

Service transition principles

Blog banner

De-Coding Love

Blog banner

Paginng In OS

Blog banner

Security and E-mail

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

What does the Australian summer have in store for your oral health?

Blog banner

Smart Eating Habits for Office Professionals to Stay Healthy

Blog banner

Article on team management software

Blog banner

WORKFRONT SOFTWARE

Blog banner

Deadlocks in Operating Systems

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

KAHAWA TEA

Blog banner

Semaphores

Blog banner

PERT Overview

Blog banner

Modern Teaching Methods: Why Inquiry-based & Experiential Learning Works Best

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

Measuring IT Risk

Blog banner

Coping with Diagnosis Shock

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Technical SEO : Total Guide

Blog banner

Evolution of operating system

Blog banner

IOT Hacking Techniques

Blog banner

Traveling

Blog banner

virtual memory

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

Uniprocessor scheduling

Blog banner

Memory Management

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

Dr. Venkadavarahan

Blog banner