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

Biometric Authentication Vulnerabilities

Blog banner

USPS mail

Blog banner

The Five Steps of Data Science

Blog banner

Threat management

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

Deadlock

Blog banner

Review on Recovering Deleted Files

Blog banner

What is HTML?

Blog banner

Yoga in INDIA and ABROAD

Blog banner

Deadlock and Starvation

Blog banner

PERSONAL STORIES

Blog banner

Understanding Business Layer in Data Science

Blog banner

Operation system

Blog banner

Strengthening Active Directory Security

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner

10 Unknown facts about India's Independence

Blog banner

Mumbai famous street food

Blog banner

Have You Explored India Yet?

Blog banner

Sage

Blog banner

Business-to-Business

Blog banner

The Evolution of Operating Systems

Blog banner

DBMS and various career options related to it.

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Crypto tax evasion

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

Process Creation

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

OPERATING SYSTEM OBJECTIVES AND FUNCTIONS

Blog banner

Microsoft powerpoint presentation

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Self managing devices

Blog banner

History of ITIL

Blog banner

Evolution of Operating Sytems

Blog banner

Virtual machine and virtualizing

Blog banner

Big Data Architecture

Blog banner

Service Operation

Blog banner

Evolution of Operating system

Blog banner

operating system

Blog banner

Mariana Trench: The deepest depths

Blog banner