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

EID UL FITR

Blog banner

File Systems in OS.

Blog banner

Interrupts in operating system.

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

File management

Blog banner

Memory management

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Deadlocks

Blog banner

The Importance of Data Quality Management in Data Science

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Cache memory

Blog banner

INTERNET SECURITY

Blog banner

Why Kanye West (Now Ye) is the GOAT: A Legacy Beyond Music

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

Python as a tool for Data science task & project

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Be you

Blog banner

What is Minting & Mining

Blog banner

Security and E-mail

Blog banner

Cycling

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

WomenEmpowerment

Blog banner

Evolution of Operating Systems

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Ubiquitous Computing

Blog banner

Mumbai Metro 3

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

Some facts about Technology

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Cyber Security Control

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Process and Threading

Blog banner

INTRANET

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

OS Assignment 1

Blog banner

Save Environment

Blog banner

Starvation

Blog banner

What is service level Agreement?

Blog banner

AI and Cyber Security

Blog banner