On Fri, May 8, 2009 at 11:46 AM, mukti jain <muktijn@xxxxxxxxx> wrote: > Hi Seshi, > > I suppose race is generated with LOOPCONSTANT = 100000, > Actually for race on the variables the threads need to be scheduled in the > middle of updating the variables. > So you should do some minimum work in the thread function so other > threads get chance to run. Uhm, could it be because it's "int"? integer, AFAIK, at least in x86 32 bit, is updated atomically. regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ