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

What is Password Cracking ? and it's Techniques.

Blog banner

Traveling

Blog banner

Article on different management system

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

MYNTRA

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Fitness

Blog banner

What is semaphore in operating system?

Blog banner

Critical success factors

Blog banner

MoSCoW METHOD IN DATA SCIENCE

Blog banner

RAID

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Vulnerability Assessment

Blog banner

FILE SHARING

Blog banner

DATA VAULT

Blog banner

Linux -V Server Virtual Machine

Blog banner

IP ADDRESS

Blog banner

Assignment-3

Blog banner

Pipedrive

Blog banner

Memory management

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Ethical Hacking

Blog banner

Bit Coins

Blog banner

Memory Management in Operating System

Blog banner

Computer Security

Blog banner

Uniprocessor Scheduling

Blog banner

DISK SCHEDULING

Blog banner

The Right way of cooking

Blog banner

Expert System In AI

Blog banner

Pooja Silver

Blog banner

File System

Blog banner

Metasploit

Blog banner

All you need to know about Cassandra

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

MY FIRST BLOG?

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

Python as a tool for Data science task & project

Blog banner

Security in Cloud Computing

Blog banner

Vulnerability Assessment

Blog banner

GIS in Mapping and landslide alert in Bangladesh

Blog banner

Jio .....A Revolution ?? ??

Blog banner

Threads

Blog banner