摘要: 原文: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)
摘要: 摘自: http://www.drdobbs.com/parallel/cache-friendly-code-solving-manycores-ne/240012736?pgno=1"Cache" lines are the chunks of memory handled by the cache, and the size of these chunks is called the "cache line size." Common cache line sizes are 64 or 128 bytes. The limited number 阅读全文
posted @ 2012-11-15 15:37 Oceanedge 阅读(256) 评论(0) 推荐(0)
摘要: John Doerr [the venture capitalist] sold me on this idea of O.K.R.’s, which stands for objectives and key results. The idea is that the whole company and every group has one objective and three measurable key results – if you achieve two of the three, you achieve your overall objective, and if you a 阅读全文
posted @ 2012-10-26 10:19 Oceanedge 阅读(668) 评论(0) 推荐(0)
摘要: Context.public abstractComponentNamestartService(Intentservice)Since:API Level 1Request that a given application service be started. The Intent can either contain the complete class name of a specific service implementation to start, or an abstract definition through the action and other fields of t 阅读全文
posted @ 2012-10-26 10:19 Oceanedge 阅读(189) 评论(0) 推荐(0)