On 2010-02-07 12:08-0800 David MacMahon wrote:

> Hi, Alan,
>
> On Feb 6, 2010, at 12:23 , Alan W. Irwin wrote:
>
>> my understanding from
>> http://en.wikipedia.org/wiki/Reentrant_(subroutine) is reentrancy implies
>> thread safety.
>
> I'm not sure about that.  I think a function could utilize thread local 
> storage in a non-reentrant way (i.e. thread safe but not reentrant).

In fact, the Wikipedia article (or one referenced by it) also discusses
cases where thread safety does not necessarily imply reentrant.  So you are
in agreement with Wikipedia there.  However, that is a completely different
logical supposition than the one I stated above. Wikipedia states that both
suppositions are true.

To disprove the original supposition you must find an example where a
routine is reentrant (following Wikipedia's definition of that) but not
thread safe.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to