Re: atomic operations

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

 



Another good article on atomicty and data sizes:

http://www.ibm.com/developerworks/library/pa-atom/

On Sun, Feb 24, 2013 at 8:50 PM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
in simple terms, any operation, in terms assembly instructions, which can be executed in ONE instruction, is "atomic", because, just like an atom, it cannot be broken up into parts.   any instructions that is longer than one, for eg, TWO instruction, is NOT atomic, because in BETWEEN the first and 2nd instruction, something like an interrupt can come in, and affect the values of the operand when it is passed from instruction one to second instruction.  To save me from reiteration:

http://www.ibm.com/developerworks/library/pa-dalign/ (search for "atomicity").




http://www.cis.upenn.edu/~palsetia/cit595s08/Lectures08/alignmentOrdering.pdf

Essentially, atomicity and non-alignment become problematic when u tried to to read using non-byte addressing mode with non-aligned address.

On Sun, Feb 24, 2013 at 5:42 PM, Shraddha Kamat <sh2008ka@xxxxxxxxx> wrote:
what is the relation between atomic operations and memory alignment ?

I read from UTLK that "an unaligned memory access is not atomic"

please explain me , I am not able to get the relationship between
memory alignment and atomicity of the operation.


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



--
Regards,
Peter Teoh



--
Regards,
Peter Teoh
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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