I have tried on 2.6.12-10-386 linux kernel but i don't think the linux kernel version is related...
Any thoughts?
>No, it is not making any difference. I tried with Num of threads/iterations as 100/10 1000/100. But no luck. Again it is num of threads * iterations.
>
>One thing i found is the read operation is per 4 byte so, may be i think it is happening atomically. I defined i,j,k,l as "uint64_t". Then i got following o/p
>------------------------------------
>bash-2.05b$ ./a.out
>Creating 100 threads
>Wait for results
>Cleanup and show results
>
>Using 100 threads and LOOPCONSTANT = 1000
>Values are: (should be 100000)
> ==> | 100000, 0, 100000, 0 <------------------ Got the values changed but the same program but i am getting the same result on multiple executions of >the
> same program. Ideally these values of " i,j,k and l" should be dynamic due to lack of
automicity.... Not able to succeed complete race condition generation
>Main completed
------------------------------------