Subj : Re: stupid threading question .... To : comp.programming.threads From : Daniel Rayment Date : Mon Aug 15 2005 03:50 am well i pretty much think (thought) the same thing that your saying that execution of functions wont matter since each thread has its own stack, and on a single processing machine all is good. that function wouldnt be "called" activly and more than once at a time. but how bout on a 2 or more processor machine? in the unlikely event that 2 threads want to call the same function at the same time. (Once again we are not talking about accessing data types or sharing global variable or anything that "obviously is bad"). ssuppose the function that gets called at the same time is "DONT try to make sense of the numbers, i typed it on the fly there is no logic to the computation" function int doit(int &a, &b) { int c, d; c = a + b; a = b *c; d = c - a; if (a