2
$\begingroup$

I wanted to know how M:N kernel user thread model handles context switching, between multiple khread and pthread. How does the PCB/TCB for process and threads look like, how is state of registers stored while switching between kernel mode and user mode or vise versa, or between kernel threads or between user threads.Any help or reading directions would be helpful. Thanks.

$\endgroup$
  • $\begingroup$ I don't have time to research/write a full answer, but this seems like an interesting starting point: golang.org/src/runtime/proc.c $\endgroup$ – markwatson Feb 4 '15 at 16:40
  • $\begingroup$ Tanks, all I needed was some direction to proceed with. :) $\endgroup$ – CodeWithPride Feb 4 '15 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.