Subj : Re: local variables in threads To : comp.programming.threads From : Ulrich Eckhardt Date : Tue Jan 04 2005 07:04 pm Andrea Sini wrote: > if I have a thread function body like this > > void* threadBody (void* arg) > { > variable var; > } > > The variable is specific of evey thread or is shared between them ? Just like with recursive calls, separate calls of the same function have distinct local variables (except when specifically making them 'static'), independently from whether the call is in the context of one thread or the other. Uli .