lumotuwe / falseSharing

Performance hit due to false sharing in parallel computing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

Performance hit due to false sharing in parallel computing


Languages

Language:C 100.0%