wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Types of Threads

profile
Apeksha Harsora
Jul 11, 2023
0 Likes
0 Discussions
78 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

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

geographic information system (GIS)

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Music helps reduce stress

Blog banner

Windows Operating System

Blog banner

Operating System

Blog banner

A Statistical Analysis of Player Performance and their Value in cricket

Blog banner

Deadlock in operating system

Blog banner

Os assignment

Blog banner

DATA WRANGLING

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

5 Powerful Mindset Shifts To Make 2026 Your Breakthrough Year

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Social media

Blog banner

Love is in air.....

Blog banner

Interesting fact about kangaroo.

Blog banner

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

Blog banner

SQL Injection

Blog banner

gis substation

Blog banner

Uniprocessor Scheduling

Blog banner

Service stratergy principles

Blog banner

Uniprocessor Scheduling

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Goa Trip With Friends

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

Financial Fraud Detection

Blog banner

Footprinting

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

HubSpot

Blog banner

Types of email

Blog banner

?How long does wisdom tooth pain last?

Blog banner

Deadlock

Blog banner

DIGITAL ECONOMY

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

Benefits of yoga and meditation

Blog banner

E-learning in today's world

Blog banner

What is Internet

Blog banner

Memory managment

Blog banner

File management

Blog banner

Honeypot in cyber security

Blog banner

How to Run your First android App

Blog banner