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

File Sharing

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Balance

Blog banner

MACHINE LEARNING

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

IT RISK

Blog banner

Product Discount Calculator

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

What is Network Security?

Blog banner

Cyber Crime Investigation In The Era Of Big Data

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

The Future of Patola Weaving in a Sustainable Fashion World

Blog banner

Ethical Hacking

Blog banner

Photography

Blog banner

Developments in Modern Operating Systems

Blog banner

In the world of Technology...

Blog banner

Disk scheduling

Blog banner

What is Data, Information and Knowledge?

Blog banner

Hey Aryan here

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Deadlock in operating system

Blog banner

Why Makhana Is Becoming India’s Favourite Healthy Snack?

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

Fault Tolerance

Blog banner

The Best Photography Spots in and Around Arcadia, Florida

Blog banner

Salt, Sand, and Smiles: Does the Maroubra Lifestyle Affect Your Enamel?

Blog banner

Network Security Risks

Blog banner

Memory Management

Blog banner

Types of E-Commerce

Blog banner

Concept and definition of m-commerce

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

Tracking Emails & Email Crimes

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

IT Service as as Value Creation

Blog banner

NodeJs

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

Steganography

Blog banner

Memory Management

Blog banner

geographic information system (GIS)

Blog banner

Digital Life And Mental Health: A Psychological Perspective in the Modern World

Blog banner

Deadlock and Starvation

Blog banner