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

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

File Organization and Access

Blog banner

FILE SHARING

Blog banner

Developments in Modern Operating Systems

Blog banner

How to Manage Employees and Tasks in One System (Without Excel)

Blog banner

Direct Memory Access

Blog banner

What is HTML?

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

Threads in OS

Blog banner

Technical SEO : Total Guide

Blog banner

Twisted world

Blog banner

Having passion in life

Blog banner

HR Automation : Need of the hour

Blog banner

Penetration Testing

Blog banner

Cache Memory(142)

Blog banner

Getting into anime My anime suggestions

Blog banner

Protein and Energy: Why Your Workday Diet Needs More of It

Blog banner

"Audit" In Data Science

Blog banner

Multiprocessor and scheduling

Blog banner

What is semaphore in operating system?

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

Telegram and it's features

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

IoT Architecture Based Security

Blog banner

Article on Team Work

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

child Labour

Blog banner

Service Operations Principles

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

Consumer to consumer business mode

Blog banner

OLA

Blog banner

virtual memory

Blog banner

Review on Recovering Deleted Files

Blog banner

Modern Operating System

Blog banner

Data Security must be your Priority!

Blog banner

 " Healing of Yoga "

Blog banner

BITCOIN WALLET

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Respondo Launches Revolutionary Video Discussion App

Blog banner

Process, process creation and process termination

Blog banner