Question

In: Computer Science

In what ways are user-level threads better/more efficient than kernel-level threads? In what ways are they...

In what ways are user-level threads better/more efficient than kernel-level threads?

  • In what ways are they less efficient?

Solutions

Expert Solution

Answer:

User-level threads are better/more efficient than kernel-level threads in following ways:

1.Implementation of User threads is easy. User-level threads are easier and faster to create than kernel-level threads. They can also be more easily managed. While implementation of Kernel thread is complicated and slower to create as well as manage.

2. Context switch time is less while in kernel-level thread context switch time is more.

3. There are no kernel mode privileges required for thread switching in user-level threads.

4. User-level threads can be run on any operating system while kernel threads are recognized by OS.

5. User-level threads are much faster to switch between, as there is no context switch; further, a problem-domain-dependent algorithm can be used to schedule among them.

User-level threads are less efficient than kernel-level threads in following ways:

1. Multiple threads of the same process can be scheduled on different processors in kernel-level threads.

2. In user-level threads if one user level thread perform blocking operation then entire process will be blocked while in kernel level threads if one kernel thread perform blocking operation then another thread can continue execution.

Please give thumbsup, if you like it. Thanks.


Related Solutions

1.What are two differences between user-level threads and kernel-level threads? Under what circumstances is one type...
1.What are two differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other? 2.Describe the actions taken by a kernel to context switch between kernel level threads. 3.What resources are used when a thread is created? How do they differ from those used when a process is created? 4.Provide two programming examples in which multithreading provides better performance than a single-threaded solution.    5.Assume an operating system maps user-level threads to the kernel using...
Threads: Assume a multithreaded application using user level threads mapped to a single kernel level thread...
Threads: Assume a multithreaded application using user level threads mapped to a single kernel level thread in one process (Many to one model). Describe the details of what happens when a thread (i.e. thread 1) executes a blocking system call (5 points). Describe what happens when thread 1 yields control to another user level thread, namely thread 2, in the same process. (NOTE: include the following in your description: what state is saved?, where is it saved? What state is...
Which of the methods used to map user threads to kernel threads can exploit a multiprocessor...
Which of the methods used to map user threads to kernel threads can exploit a multiprocessor environment? Justify your answer
Which of the methods used to map user threads to kernel threads can exploit a multiprocessor...
Which of the methods used to map user threads to kernel threads can exploit a multiprocessor environment? Justify your answer.
Name one advantage of associating user threads with kernel thread? Suggest an advantage and disadvantage of...
Name one advantage of associating user threads with kernel thread? Suggest an advantage and disadvantage of using mailboxes over shared memory for inter-process communication.
NO Handwriting Please ! Will there be anything more efficient and better than LEDs? If so,...
NO Handwriting Please ! Will there be anything more efficient and better than LEDs? If so, how long will it be until that happens?
Why do kernel modules generally perform better than user-space device drivers? Name and define five sections...
Why do kernel modules generally perform better than user-space device drivers? Name and define five sections of the process space.
Thread scheduling at the process level and at the kernel level. This topic requires more work...
Thread scheduling at the process level and at the kernel level. This topic requires more work on my part and I will give an updated draft. There may be more than one question here. Review the different allocation policies for kernel threads in relation to user threads – one to one, many to one, many to many, hybrid. These are sometimes referred to as an “M:N ratio” where M is the number of user threads and N is the number...
In what ways is IRR more useful than NPV? In what ways is NPV more useful...
In what ways is IRR more useful than NPV? In what ways is NPV more useful than IRR? Or you could view this question as asking for the pros and cons of each calculation.
    2.1) What is the kernel mode?     2.2) What is the user mode?     2.3)...
    2.1) What is the kernel mode?     2.2) What is the user mode?     2.3) Which mode has more different instructions?     2.4) Why do we need these two modes in designing an operating system?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT