Skip to content

Performance hit due to false sharing in parallel computing

Notifications You must be signed in to change notification settings

iceplosion/falseSharing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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/

About

Performance hit due to false sharing in parallel computing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%