+91 9404 340 614    gyaanibuddy@gmail.com

Like
0 Likes

#3. What is Thread? : User level thread vs Kernel level thread

Last updated on Jan. 23, 2021, 7:01 p.m. by None

Image desc
Explained Threads in OS and its types.

Thread:

  • Thread is a lightweight process because it uses fewer resources as compared to a process.
  • Each thread represents a separate flow of control.

User level thread  vs Kernel level thread:

User level thread   Kernel level thread
i)User level threads are faster to create and manage.

i) Kernel level threads are slower to create and manage.

ii)User level threads can run on any OS ii)Kernel level threads are specific to that OS.
iii)User level threads are maintained by users iii)Kernel level threads are maintained by OS.
iv)If one user level thread is blocked, then the entire process is blocked.

iv) If one kernel level thread is blocked, then there is no effect on other threads.

v)Eg-POSIX P-threads,Mach C-Threads v)  Eg-Windows 95/96,Solaris
vi)They are also called as many-to-one mapping threads.

vi)They are also called as one-to-one mapping 

threads.

User Level Thread:

Kernel Level Thread:

 

You can refer to this YouTube video for Video Explanations

...

by None

Gyaanibuddy
blog comments powered by Disqus