Olivier Galibert wrote:
On Sat, Nov 03, 2007 at 03:38:51AM +1100, skaller wrote:
My argument is basically: there is no need for any such
feature in a well written program. Each thread already has
its own local stack. Global variables should not be used
in the first place (except for signals etc where
there is no choice).

And for libraries where there is no choice.  Happens rather often.

There are lots of cases where global thread specific variables
are useful in practice, ask anyone who has programmed real world
large scale real time embedded programs. One obvious example is
the stack limit for checking stack overflow on subprogram entry.

  OG.


Reply via email to