摘要:
原文:http://www.drdobbs.com/parallel/eliminate-false-sharing/217500206?pgno=1count the number of odd numbers in a matrix:int odds = 0;for( int i = 0; i < DIM; ++i ) for( int j = 0; j < DIM; ++j ) if( matrix[i*DIM + j] % 2 != 0 ) ++odds;If our job is to parallelize existing code, this is just... 阅读全文
posted @ 2012-11-23 10:51
Oceanedge
阅读(177)
评论(0)
推荐(0)
浙公网安备 33010602011771号