wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Types of Threads

profile
Apeksha Harsora
Jul 11, 2023
0 Likes
0 Discussions
77 Reads

In operating systems, a THREADS refers to a sequence of instructions that can be executed independently by a processor. Threads are lightweight units of execution within a process and allow concurrent execution of multiple tasks within a single program. Example of a simple multi-threaded program: a web browser. When you open a web browser, it allows you to open multiple tabs and load web pages simultaneously. Each tab can be considered as a separate thread within the browser process. 

Types of Threads: 

User Level thread (ULT) – Is implemented in the user level library, they are not created using the system calls. Thread switching does not need to call OS and to cause interrupt to Kernel. Kernel doesn’t know about the user level thread and manages them as if they were single-threaded processes. 

Advantages of ULT –

1) Can be implemented on an OS that doesn’t support multithreading.

2) Simple representation since thread has only program counter, register set, stack space.

3) Simple to create since no intervention of kernel.

4) Thread switching is fast since no OS calls need to be made. 

Limitations of ULT –

1) No or less co-ordination among the threads and Kernel.

2) If one thread causes a page fault, the entire process blocks.

Kernel Level Thread (KLT) – Kernel knows and manages the threads. Instead of thread table in each process, the kernel itself has thread table (a master one) that keeps track of all the threads in the system. In addition kernel also maintains the traditional process table to keep track of the processes. OS kernel provides system call to create and manage threads.

Advantages of KLT –

1) Since kernel has full knowledge about the threads in the system, scheduler may decide to give more time to processes having large number of threads.

2) Good for applications that frequently block.

Limitations of KLT –

1) Slow and inefficient.

2) It requires thread control block so it is an overhead.

 


Comments ()


Sign in

Read Next

MOVEMBER

Blog banner

Modern operating system

Blog banner

Financial Fraud Detection

Blog banner

Cyber Security Control

Blog banner

Threat management

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

" THE ANSWERS THAT LED INDIAN BEAUTIES TO THE MISS UNIVERSE HISTORIC WIN. "

Blog banner

12 Principles of Animation

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

Understanding E-mail Servers

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

Memory Management in Operating System

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Raid and levels of raid.

Blog banner

Types Of scheduling

Blog banner

RAID and It's Levels

Blog banner

Apple

Blog banner

Buffer Overflow

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Satellite Based Positioning

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

Cache memory

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

GIS in Mapping and landslide alert in Bangladesh

Blog banner

Cyber Forensics

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

Swiggi

Blog banner

LinkedIn

Blog banner

E-Governance

Blog banner

Capacity management in ITSM

Blog banner

Deadlock

Blog banner

MySQL

Blog banner

DNS Cache

Blog banner

Types of Hackers.

Blog banner

Telegram and it's features

Blog banner

Article on IT development trends

Blog banner

5 Stages of Digital Marketing

Blog banner

Elements and Principles of Photography

Blog banner