Re: read-write spinlocks ??

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

 



On 4/28/05, Gaurav Dhiman <gaurav4lkg@xxxxxxxxx> wrote:
> please let me know how these two statements are made atomic across the
> CPU, i think these two need to be atomic across the CPU for actually
> locking the rw lock for reading. What does "lock ;" specifices here.

hi,
 Lock is an opcode prefix used for atomicity in i386 . so, that memory
is only used by one processor at a time.

AFAIK, it asserts LOCK# which locks the bus.

regards
Manish Regmi
 
-- 
---------------------------------------------------------
"Owning a hammer doesn't make one an architect"

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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