NVIDIA Interview Question

what’s wrong with this ISR function? __interrupt double compute_area(double radius) { { double area = PI * radius * radius; printf(“\nArea = %f”, area); return area; }

Interview Answer

Anonymous

Mar 22, 2017

For starters it has a printf which is very time consuming system call for a process.