Context swithching in Interrupts

Status
Not open for further replies.

vinoth14

Junior Member level 1
Joined
Feb 27, 2015
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
184
Hi,

Can anyone explain about context switching term in interrupts with example?
 

Context switching is the process of saving the current state of the process/processor when the interrupt is trigger and the interrupt service routine (ISR) is executed.

What exactly the current state involves, e.g., data, variables, etc. which maybe altered during ISR execution, typically varies from microcontroller architecture, specific compiler and issued compiler directives. The context state is often, but not always, pushed on the stack and after ISR execution restored, hence restoring the process/processor to a state before the interrupt occured and ISR was executed. The code execution flow then returns to the original process at the point when the interrupt occurred.

BigDog
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…