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

Blockchain Transactions

Blog banner

Confidence Building Activities for the New School Year

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

SQL Injection

Blog banner

Game via listing method

Blog banner

The New Dr. Frankenstein who will perform first full head transplant

Blog banner

Deadlocks in Operating Systems

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

PHONE TECHNOLOGY

Blog banner

Electronic Funds Transfer

Blog banner

Bharat Maps

Blog banner

ADIDAS

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Decoding Confusion Matrix

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

Why is online marketing is important in current scenario

Blog banner

How Puppet Shows and Role Play Teach Empathy to Preschoolers

Blog banner

I/O buffer and its techniques

Blog banner

BLOCKCHAIN MACHANISM

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

NETSUITE

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Sage

Blog banner

Coping with Diagnosis Shock

Blog banner

Precision-Recall in Data Science

Blog banner

I/O Management and Disk Scheduling

Blog banner

Zero-Day Attack

Blog banner

File Management system

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Understanding the 4 Types of Learning Methods in Early Childhood

Blog banner

FRIENDSHIP

Blog banner

Full Disk Encryption on Digital Forensics

Blog banner

Power of words

Blog banner

COMPUTER FORENSICS AND GRAPHICS

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Cryptanalysis tool

Blog banner

Layers Of Blockchain

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

Mumbaicha Dabbawalla

Blog banner

Women Empowerment

Blog banner