Son:
> while(pars->spin)
> key = unique();
> pars->spin += key;
> pars->i++;
> pars->j++;
> pars->spin -= key;
> }
Look into code. Son is for any reason started first. While it does
pars->spin -= key;
while (pars->spin) key = unique();
pars->spin += key;
Operations: read, sub, write, read, compare, read, add, write
So there is <------------------------->
this window to switch to parent. But parent does
while (pars->spin) key = unique();
and this includes 'rdtsc' which is not very fast (and without -O2 it does
also call/ret). If you add 'unique()' after 'pars->spin -= key;', it will
happilly print couple of 'Good' (after some time it will core dump).
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz
P.S.: I do not say that I'm right... But I think that I'm.
P.P.S.: dual PIII/450
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/