Re: Not able to generate race condition... please help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes to some extent ... I have already done experimenting on changing Num of threads/iterations but not able to succeed fully. I have pasted the o/p in the previous mail thread. I am forwarding the snap of the results :-

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
------------------------------------



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux