atomic operations

richard -rw- weinberger richard.weinberger at gmail.com
Sun Feb 24 05:50:14 EST 2013


On Sun, Feb 24, 2013 at 10:42 AM, Shraddha Kamat <sh2008ka at gmail.com> 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.

Not all CPUs support unaligned memory access, such an access may cause a fault
which needs to be fixed by the kernel...

-- 
Thanks,
//richard



More information about the Kernelnewbies mailing list