top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Use case to check re-entrancy of a function ?

+2 votes
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?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.