4 ms·
> Cost of a Interrupt: 100 ns to 1 microseconds That sounds like the time it takes to do a context switch to the OS. A math error interrupt doesn't need to do
by Dylan16807 9y ago
> Cost of a Interrupt: 100 ns to 1 microseconds
That sounds like the time it takes to do a context switch to the OS. A math error interrupt doesn't need to do a context switch. The cost doesn't need to be any higher than a branch misprediction at 10-20 cycles.
- louithethrid 9y agoI stand corrected, sorry, it was late at night and yes of course its a floating point operation that goes sour, which in assembly would be handled and then the result passed to the programm handling. Still expensive when encountered in mass though, on a micro controler. Thanks for putting it right, before the missinformation could spread.