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

MPL and how its effects?

Blog banner

File management In Operating System

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Why is ITSM important in IT organization?

Blog banner

Blog on health and fitness

Blog banner

Process, process creation and process termination

Blog banner

Virtualisation

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Importance Of Yoga.

Blog banner

Internet of Things

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Uniprocessor scheduling

Blog banner

Vulnerability Assessment

Blog banner

Deadlock in Operating System

Blog banner

Service Transition Process in ITSM

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

GUIDE TO GIS

Blog banner

Interrupts in operating system.

Blog banner

Why Friendship at Work is Important

Blog banner

Expert System In AI

Blog banner

Scheduling in Operating Systems

Blog banner

Spyware

Blog banner

Threads

Blog banner

Buffering

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Direct Memory Access

Blog banner

Basic Security For SOAP Services

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Virtual Machine

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Deadlock

Blog banner

A Journey By Train

Blog banner

Deadlock and Starvation

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner