Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
Do I have to use the exact instance type shown in the example?
No. The example uses an Arm-based AWS t4g.xlarge instance, but other instance types can be used.
What result should I expect when I run the race condition example on x86 and Arm?
Code with a latent race can appear to work on x86 but exhibit different or nondeterministic behavior on Arm due to memory ordering differences. The example is designed to make this contrast visible.
Which compiler should I use to run ThreadSanitizer (TSan)?
Use a recent version of the clang compiler that includes ThreadSanitizer. TSan instruments your program at compile time and reports potential data races at runtime.
Why does my program run slower when built with TSan?
TSan adds instrumentation and runtime checks, which introduce significant overhead. Use TSan builds for debugging data races, not for measuring performance.
What should I check if code that seemed correct on x86 behaves differently on Arm?
Don’t assume x86 memory ordering semantics on Arm. Revisit the code with the C++ memory model in mind and use atomics and proper synchronization instead of relying on implicit ordering.

Share

Tell others about this Learning Path.

Return to Servers and Cloud Computing