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

Exploring Virtual Machines and Computer Forensic Validation Tools

Blog banner

Types of email

Blog banner

virtual machine

Blog banner

MACHINE LEARNING

Blog banner

Data Exfiltration

Blog banner

Python as a tool for Data science task & project

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

The Role of Fibre in Everyday Nutrition and Digestive Health

Blog banner

Proof-of-Stake (PoS)

Blog banner

OS Assignment-3

Blog banner

Article on team management software

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

Embedded Operating System

Blog banner

Memory Management

Blog banner

Logical and physical address

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

Memory Partitioning

Blog banner

INTRODUCTION TO C#

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

Types of threads

Blog banner

10 Interesting facts you should know!!!

Blog banner

Evolution of OS

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

Process Creation

Blog banner

Embaded operating system

Blog banner

Old age lifestyle

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

"Life as a Part-time Student"

Blog banner

Disk scheduling

Blog banner

Blockchain Security Technique

Blog banner

Mental Health

Blog banner

Benefits of yoga and meditation

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

History of ITIL

Blog banner

E-mail security

Blog banner

Concurrency and memory

Blog banner

Memory management

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Digital Life And Mental Health: A Psychological Perspective in the Modern World

Blog banner