Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 693 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 693 Bytes

falseSharing

Performance hit due to false sharing in parallel computing

This repository contains a C file which gives the computation time differences between two scenarios : parallel processing with false sharing and parallel processing without false sharing.

You need gcc to compile the code:
$gcc -pthread -o parallelComputing parallelComputing.c

Run the code:
$./parallelComputing.c

These are the results upon execution -

Image of the result

For explanation on false sharing and the code refer my blog : https://parallelcomputing2017.wordpress.com/2017/03/17/understanding-false-sharing/