Question.4
A developer calls new inside a motor control ISR that must complete within 10 microseconds:
void motor_isr() { uint8_t* cmd = new uint8_t[16]; parse_command(cmd); delete[] cmd; }
Why is this dangerous?
Select Answer
The allocation will always succeed because ISRs have priority
new cannot be called from interrupt context
new
new is too slow for ISRs
new has non-deterministic timing