阅读背景:

使用不同的线程访问不同的子数组而不同步安全吗?

来源:互联网 

If I have 10 threads, and an array of 10 sub-arrays, is it safe to have each thread do work on a different one of the sub-arrays? i.e. thread[0] does stuff to array[0], thread[1] does stuff to array[1], etc. Or is this not safe to do? Does it make a difference if it's a vector or array (or any data set for that matter)?If I have 10 threads, and an array of 10 sub-ar




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: