wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Types of Threads

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

Cross site scripting Attack

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

Khau Galli – Vile Parle

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner

10 Reasons why Monica and Chandler are the best couple ever.!!!

Blog banner

Google

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

This School Year, Let Their Belongings Come Back Home Too with Our Ultimate Labelling Kit

Blog banner

TAILS OS

Blog banner

Types of Viruses

Blog banner

virtual machine

Blog banner

What is metaverse?

Blog banner

Capacity management in ITSM

Blog banner

Process, process creation and process termination

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

TRAIN TRAVELING

Blog banner

evolution of operating system - Disha Parekh

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

USES OF WHATSAPP

Blog banner

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

Blog banner

Cache Memory

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

What is Network Security?

Blog banner

Brain wash of social media

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

differentiate thinking humanly and rationally

Blog banner

IP ADDRESS

Blog banner

Depression

Blog banner

Starvation

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Explain DBMS in Brief

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

Buffering

Blog banner

Decision Tree: A Diagram Model

Blog banner

Be you

Blog banner

Man is free by the birth .

Blog banner

Policies for Service Transition

Blog banner

Rain

Blog banner

Memory Management

Blog banner

Microsoft powerpoint presentation

Blog banner

You'll get to know about Pankaj Negi

Blog banner