Professional Documents
Culture Documents
Threads PDF
Threads PDF
(OPERATING SYSTEM)
Presented By : Prakhar Maurya
B.Sc. IT (3rd Semester)
@PRAKHAR
What is Thread ?
@PRAKHAR
Single threaded Process and Multi-threaded Process
@PRAKHAR
Difference between Process and Threads :
S.N. Process Threads
1. Process is heavy weight or Thread is light weight taking lesser
resource intensive. resources than a process.
@PRAKHAR
Advantages of Threads :
• Efficient communication.
@PRAKHAR
Disadvantages of Threads :
• Security.
@PRAKHAR
Types of Threads :
@PRAKHAR
User Level Threads (ULT) :
@PRAKHAR
Advantages of ULT :
• User level threads does not require modification to operating
system.
Disadvantages of ULT :
• There is a lack of coordination between threads and operating
system kernel.
@PRAKHAR
Kernel Level Threads (KLT) :
@PRAKHAR
Advantages of KLT :
• Kernel can simultaneously schedule multiple threads from the
same process on multiple processes.
Disadvantages of KLT :
• Kernel thread are generally slower to create and manage than the
user threads.
• Kernel requires Thread Control Block (TCB) for each thread in the
pool, hence complexity increases.
@PRAKHAR
Difference between ULT and KLT :
1. User level thread are faster to Kernel level thread are slower to
create and manage. create and manage.
3. ULT is generic and can run on any KLT is specific to the operating
operating system. system.
@PRAKHAR
Multi-Threading Models :
@PRAKHAR
Many-to-One Model :
@PRAKHAR
One-to-One Model :
@PRAKHAR
Many-to-Many Model :
@PRAKHAR
“ THANK YOU !
@PRAKHAR