top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Use case to check re-entrancy of a function ?

+2 votes
313 views
Use case to check re-entrancy of a function ?
posted Jul 30, 2014 by Harshita

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

1 Answer

0 votes

Re-entrancy means no use of global variable only local variables, as local variable are context specific and if function enters again then new set of local variables are created.

So in short function should not use of global variables for re-entrancy.

answer Jul 6, 2015 by Salil Agrawal
Similar Questions
+1 vote

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

+1 vote

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

...