<div dir="ltr">Hi,<div><br></div><div>I want to learn more about how context switching works in RTEMS. I saw the following lines in theaddispatch.c:</div><div><br></div><div>    _Thread_Save_fp( executing );<br>    _Context_Switch( &executing->Registers, &heir->Registers );<br>    _Thread_Restore_fp( executing );<br></div><div><br></div><div>I do not understand how it works. Here, the executing process saves its context by calling _Thread_Save_fp( executing ), then if a different process resumes execution after the context switch, why does it get the context of previous process (executing)?</div><div><br></div><div>Can someone help me learn more about this?</div><div><br></div><div>Thanks,</div><div>Richi.   </div></div>