Question

What is the difference between User Threads and Kernel Threads? Name 2 advantages and 2 disadvantages...

What is the difference between User Threads and Kernel Threads? Name 2 advantages and 2 disadvantages for each threading model.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

------difference between user thread and kernel thread------------------

1-> User thread-- These thread are supported above the kernel and are implemented by a thread library at the user level.

Kernel thread-- these are directly supported by operating system.

2-> User thread-- these are generic and can run on any os.

Kernel thread-- these are specific to the os.

3-> User thread--each process needs its own private thread table to keep track of the thread in that process.

Kernel process-- Kernel has a thread table that keep track of all the threads in the system.

-----------------------------------------------------------------------------------------------------------------------------------------

ADVANTAGE OF USER THREAD--

1- THESE ARE EASIER AND FASTER THAN KERNEL THREAD.

2- THESE CAN BE RUN ON ANY OPERATING SYSTEM.

DISADVANTAGE OF USER THREAD--

1-ENTIRE PROCESS WILL BE BLOCKED IF ONE USER LEVEL THREAD PERFORM BLOCKING OPERATION.

2-MULTI THREADED APPLICATION IN USER LEVEL THREAD CAN NOT USE MULTIPROCESSING TO THEIR ADVANTAGE.

-----------------------------------------------------------------------------------------------------------------------------------------------------

ADVANTAGE OF KERNEL THREAD--

1-THE KERNEL ROUTINES CAN BE MULTI THREADED.

2-OTHER THREADS WILL NOT BE AFFECTED IF ONE THREAD PERFORM BLOCKING OPERATION.

DISADVANTAGE OF KERNEL THREAD--

1-THESE ARE SLOWER TO CREATE AS WELL AS MANAGE AS COMPARE TO USER LEVEL THREADS.

2-A MODE SWITCH TO KERNEL MODE IS REQUIRED TO TRANSFORM CONTROL TO ONE THREAD TO ANOTHER IN A PROCESS.

Add a comment
Know the answer?
Add Answer to:
What is the difference between User Threads and Kernel Threads? Name 2 advantages and 2 disadvantages...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT