Reentrant vs Threadsafe (was RE: Re-entrant module stores into itself with no 0C4)

2011-07-20 Thread Chase, John
-Original Message- From: IBM Mainframe Discussion List On Behalf Of John McKown Just to be my usual self. In general in CS, reentrant does not mean non-self modifying. Many programs which do not modify themselves are still not reentrant due to uncoordinated updating of shared

Re: Reentrant vs Threadsafe (was RE: Re-entrant module stores into itself with no 0C4)

2011-07-20 Thread McKown, John
Answered in the Wikipedia article. quote Relation to thread safety It must not be confused with thread-safe. A function can be thread-safe and still not reentrant. For example, a function could be wrapped all around with a mutex which avoids problems in multi-threading environments, and if that