(j3.2006) Question from a colleague

Van Snyder Van.Snyder
Tue Apr 7 14:36:43 EDT 2009

A colleague asked me whether there is a performance benefit if the
compiler is informed that it is not necessary for a procedure to be
thread safe.  This actually originated in a discussion of iterators in
python, CLU and alphard, where the activation record has to be preserved
between suspension and resumption, as for a coroutine.  My colleague did
ask, however, whether our code would run faster if we could tell the
compiler it didn't need to be thread safe.  We use 5 million cpu hours
per year, so a little improvement makes a big difference.

Van Snyder                    |  What fraction of Americans believe 
Van.Snyder at jpl.nasa.gov       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.

More information about the J3 mailing list