Explain me can we use printf inside isr?



Explain me can we use printf inside isr?..

Answer / Vijendra Singh

It's generally not recommended to use 'printf' or any library functions that rely on dynamic memory allocation within an Interrupt Service Routine (ISR). This is because the ISR should be as short and deterministic as possible, to minimize the time spent executing it and reduce the possibility of missing other interrupts. Instead, ISRs should focus on handling the interrupt quickly and returning control back to the main program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

Tell me how does the interrupts handle by using the threads?

1 Answers  


Who are the gang of four? Why should you care?

1 Answers  


Explain the concept of separation of concerns and it's pros and cons.

1 Answers  


What is a semaphore? What are the different types of semaphore?

1 Answers  


What kinds of problems can you hit with locking model? And a lockless model?

1 Answers  


Discuss the concept of yagni.

1 Answers  


List out some of the commonly found errors in Embedded Systems?

1 Answers  


Please write a program to show the functionality of power-save super loop?

1 Answers  


How to create a child process in linux?

1 Answers  


A=7; b=8; x=a++-b; printf(“%d”, x ); what does this code give as output?

1 Answers  


Explain me what is semaphore?

1 Answers  


If you've integrated new software in an existing system, tell us how you evaluated and identified the requirements for this new technology.

1 Answers  


Categories