[PATCH 4/5] SMP01: possible CPU race when using byte arrays

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 31 14:24:37 UTC 2013


On 2013-10-31 15:18, Daniel Hellstrom wrote:
> Bool is char, a 4 CPU 8-bit variable array will crate a race, where CPU1 might
> over write CPU2 and CPU3 task execution status. There is no atomic locking of
> the TaskRan array.

In case they write to different memory locations, there is no data race under 
the C11 memory model.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list