top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

OS: When to decide having re-entrant function in code is necessary ?

+1 vote
323 views

I know the basic definition of re-entrant code and but don't known when it is really required ?

posted May 22, 2016 by Ganesh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Hi Ganesh,

It depends on you or programmer. Re entrant code normally programmer wont prefer, Re entrant may be because of recursive function call or external interrupt like hardware signal. If it is a external interrupt then it is fine bit it it is a re cursive it will cause timing issue and affecting global variables etc.

answer May 24, 2016 by Jaganathan
Similar Questions
+1 vote

I know some kind of re-entrant function but would like to be precise so please help with example C/C++ code?

+1 vote

Can you please explain with examples. Also like to know if all re-entrant code is thread safe.

...