Which interrupt handler is responsible for context switching in multitasking system?
Sorry for my English.
Which interrupt handler is responsible for context switching in multitasking system?
Sorry for my English.
The OS can do a context switch from the timer IRQ handler if it wants to. This is generally what happens to CPU-hog processes when they've used up their timeslice. (The kernel returns to a different process / thread, instead of back to the context that was running when the IRQ fired.)
Maybe https://en.wikipedia.org/wiki/Preemption_(computing)#Time_slice can help?