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

Real-Time Operating Systems (RTOS) Deep Explanation

Blog banner

Yoga in INDIA and ABROAD

Blog banner

Not anti-social, but pro-solitude

Blog banner

Smart Eating Habits for Office Professionals to Stay Healthy

Blog banner

Uniprocessor scheduling

Blog banner

Firewall

Blog banner

From Loom to Luxury: How Patola Elevates Modern Wardrobes

Blog banner

Solitary Play Activities for Preschoolers: Types and Benefits

Blog banner

What is Internet

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

10 Reasons Why Guy BestFriends are the Must in Every Girl's Life

Blog banner

INTRODUCTION

Blog banner

Deadlock

Blog banner

How to kiss

Blog banner

Annual Day Preparation for Toddlers: What Helps and What to Avoid

Blog banner

Loneliness

Blog banner

Understanding Input Based Keylogger Activation Systems: Risks and Mitigation

Blog banner

Types Of scheduling

Blog banner

INTERNET SECURITY

Blog banner

Spyware

Blog banner

The New Dr. Frankenstein who will perform first full head transplant

Blog banner

Old age lifestyle

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

Music helps reduce stress

Blog banner

Having passion in life

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Scheduling in Operating Systems

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

Delhi city

Blog banner

The Right way of cooking

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

Zoho

Blog banner

Types of Hackers.

Blog banner

Threads and concurrency

Blog banner

Smartsheet

Blog banner

SMARTSHEET MANAGEMENT SOFTWARE

Blog banner

Basic Security For SOAP Services

Blog banner

Memory Management of Operating System(OS)

Blog banner

Dancing Classes In Mumbai

Blog banner

Session Hijacking

Blog banner

OS Assignment-3

Blog banner

Malware Defense

Blog banner