阅读背景:

使用pthread时,使用全局变量的C ++显示比指针慢100%?

来源:互联网 

I've got a quite program to show the performance of 2 similar programs, both uses 2 threads to do calculation. The core difference is that one uses a global variable, another uses a "new" object, as below:I've got a quite program to show the performanc




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

分享到: