This is a small demo project for the accompanying blog post False Sharing. It contains a microbenchmark to demonstrate the effects of false sharing and its mitigation with
The project requires at least JDK 8 and Gradle 2.0.
Installation and Usage
git clone https://github.com/danielmitterdorfer/false-sharing.git cd false-sharing gradle shadow java -jar build/libs/false-sharing-0.1.0-all.jar -rf csv -rff false-sharing.csv
'False Sharing' is distributed under the terms of the Apache Software Foundation license, version 2.0.