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

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

Key to success in Sports

Blog banner

Paginng In OS

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

LINUX VSERVER VIRTUAL MACHINE ARCHITECTURE

Blog banner

Modern Operating System

Blog banner

Virtual memory in Operating System

Blog banner

IT security management

Blog banner

Deadlock in Operating System

Blog banner

Mumbai

Blog banner

Memory Management

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

Deadlock in Operating systems

Blog banner

Love is in air.....

Blog banner

MUTUAL EXCLUSION

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Developments in Modern Operating Systems

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

Making Money through Instagram

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

THE DESIRE OF MANY

Blog banner

Modern Operating system

Blog banner

File management

Blog banner

Modern Operating System

Blog banner

Memory Management

Blog banner

Network Security Risks

Blog banner

Impact of social media on the human life

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

E-Governance

Blog banner

Time Series Analysis

Blog banner

Tools to support CSI activities

Blog banner

Memory Management - operating system

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

The Importance of Data Quality Management in Data Science

Blog banner

security requirements for safe e-payment

Blog banner

Objectives and functions of Operating System...

Blog banner

HUBSPOT

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

Memory Management

Blog banner