I know the basic definition of re-entrant code and but don't known when it is really required ?
I know some kind of re-entrant function but would like to be precise so please help with example C/C++ code?
Can you please explain with examples. Also like to know if all re-entrant code is thread safe.