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

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

 



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


[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