views:

132

answers:

2

What is the difference between a re-entrant function and a thread safe function?

+3  A: 

Did you check the wiki article on the subject. It explains it pretty well IMO.

Brian Rasmussen
+1  A: 

Re-entrant means no global state (local only).

Thread safe means it is not possible for 2 (or more) threads to conflict with each other (by writing conflicting values).

Mitch Wheat
but as Brian says, the wiki article explains it well...
Mitch Wheat