Open main menu

CDOT Wiki β

Changes

GPU621/Analyzing False Sharing

38 bytes added, 13:59, 24 November 2022
no edit summary
In this program code, we can easily see that the Number struct has two member variables (num1 and num2). They are for loop in two different threads to execute the increment operator 1000000 times. This time we use Linux with multiple cores to compile (note that here we are not using any optimization)
 
[[File:LinuxOutput.jpg|400px]]<br />
118
edits