adspace
Describe the actions taken by thread library to context switch between user level threads?
Answer Posted / Akhilendra Kumar Singh
The thread library manages context switches between user-level threads. When a thread needs to yield the CPU, it saves its state (registers and stack pointer) in the Thread Control Block (TCB). The thread library then locates the TCB of the next thread, restores its state into the registers, and transfers control to that thread.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers