answersLogoWhite

0


Best Answer

Answer

The thread library function performs the following actions to context switch between user level threads:

1. Copy all live registers to Thread control Block (TCB)

2. Restore the state of the thread to run next i.e. (copy the values of live registers from (TCB) to registers)

3. Move to the next thread to execute

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Describe the action taken by a thread library to context switch between user level threads?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Describe the action taken by a kernel to context switch between kernel level threads?

Context switching between kernel threads typically requires saving the value of the CPU registers from the thread being switched out and restoring the CPU registers of the new thread being scheduled.


Are posix threads user level or kernel level?

POSIX threads are user level threads, because had a interface library and the operating systems don't control his ejecution and does not know


How threads are implemented in Linux?

If you are developing your application in user space, you can use POSIX threads implementation from glibc library. bash# man pthread_create You can also implement threads in kernel space using kthreads.


Whats the difference between plumbing pipe threads and conduit pipe threads?

Plumbing pipe threads are squared and conduit pipe threads are tapered.


What takes longer a context switch with user level threads or one with kernel level threads?

Kernel level threads take a longer time to context switch since OS will have to save and reload each and every TCB (Thread Control block) where as in user level no kernel intervention threads simply context switch more efficiently. But there are disadvantages such as since OS sees the user leve threads as a whole process it will not give a large portion of CPU time for execution if a thread is blocked the whole process goes to the waiting state please correct my answer if im wrong godlovesu49@hotmail.com thanks regards yo


What is the difference between pipe threads and electrical conduit pipe threads?

Water pipe threads are tapered, electrical pipe is not tapered.


What is thread based multitasking?

-> Difference between process based and thread based multitasking: 1) threads share the same address space where as process doesn't. 2) context switching between threads is usually less expensive than between processes. 3) cost of communication between threads is relatively low.


What are the differences between Internal and External threads?

Internal threads are threads inside of a hole in something. Like a nut, for instance. External threads are threads on the outside of a cylindrical object. Like a bolt, for instance. hth, Steve


What are metric threads?

Metric threads are called that way, because you measure the distance between the threads (at the highest point), in millimeters., As opposed to SAE (standard), which are measured by the number of threads in an inch.


What is the difference between single and double screw threads?

screw thread are single threads which means they are not double


Where can one find information about Java threads?

There is a lot of information about Java threads. The local library has many books on this topic. Also, websites like Oracle and O'Reiley have information on this topic for the public.


Describe the actions by the Kernel to switch between different kernel-level threads belonging to the same process?

1- State of current process is Saved. 2-Restore State of incoming process.