Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

Saving the value of registers during context switch

$
0
0

During Context Switching, the kernel saves the state of current process (process1) and restores the state of the other process (process2) into CPU (loads the various registers with the previous values for process2).

Which memory area the kernel saves the state of process1 when it is swapped out? Is it in the stack area of process1 or is it in some place within kernel itself? Thanks in advance.


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>