[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not able to generate race condition... please help
On Thu, May 7, 2009 at 10:58 PM, seshikanth varma
<seshikanthvarma@xxxxxxxxx> wrote:
> This is the way i have defined the variables:
>
> volatile int i asm("eax"); /* For using eax ebx ecx & edx for
> i, j , k and l respectively.
>
> * All the threads shud use eax
> for i, ebx for j ...
>
> */
> volatile int j asm("ebx");
> volatile int k asm("ecx");
> volatile int l asm("edx");
>
> Though every thread has its own copy of registers,the registers eax, ebx ecx
> and edx are unique by name. So, the threads should be writing to these
> registers which means that these variables are shared.
Sorry you are right, I dont know what I was thinking about. :D
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ