This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ldrex/strex breaked by third task ?

Hi, 

The code is:

There are three tasks: A, B, C.

First:  task A run line1, and it gets r1 as 0, now local monitor is "Exclusive Access State",  and then A is pre-empted by B.

B runs line1, line2, line3, it write r0 as 1 ok. The Local monitor is "Open Access State".

C runs line1, the local monitor is "Exclusive Access State" now, and C is pre-empted by A.

A runs line2, line3, and it  success, now r0 is 1.

As above, A and B both success, but r0 is 1 . 

Can I say that : ldrex/strex is breaked by the third task ?

0