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

Cache memory

Blog banner

Google classroom

Blog banner

Full Disk Encryption on Digital Forensics

Blog banner

Memory Management

Blog banner

File Allocation Methods

Blog banner

What is E-commerce

Blog banner

Data Science in Mental Health Prediction

Blog banner

Deadlocks in operating system

Blog banner

HTML vs HTML5

Blog banner

Why Mumbai Professionals Are Switching Back to Home-Style Tiffin Meals

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Veg Mix Pickle

Blog banner

Coping with Diagnosis Shock

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

Principal of concurrency

Blog banner

OPERATING SYSTEM

Blog banner

CoWIN

Blog banner

All you need to know about Cassandra

Blog banner

Internet of Things and cyber security

Blog banner

Cache Memory

Blog banner

Operating system

Blog banner

Be you

Blog banner

Khau Galli – Vile Parle

Blog banner

A Journey By Train

Blog banner

12 Principles of Animation

Blog banner

OLA

Blog banner

Mumbai

Blog banner

How Men and Women Process Pain Differently

Blog banner

Satellite Based Positioning

Blog banner

Understanding E-mail Servers

Blog banner

Deadlocks

Blog banner

Navigating the Digital Battlefield: Security Breaches and Effective Countermeasures

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Bharat Maps

Blog banner

Service Strategy principles

Blog banner

Amazon

Blog banner

Disk scheduling

Blog banner

Place to visit in pune

Blog banner

Virtual Machine

Blog banner

Cycling

Blog banner

operating system

Blog banner

Video games

Blog banner