阅读背景:

C ++内存泄漏会对CPU使用产生负面影响吗?

来源:互联网 

I have a C++ program that has a pretty terrible memory leak, about 4MB / second. I know where it's coming from and can fix it, but that's not my main problem. My program is taking up a very large amount of CPU usage and it isn't running as fast as I want it to. I have two different threads in the program. One by itself takes ~50% CPU, which is fine, and the other by itself takes ~15% CPU, which is fine. Together however CPU usage is 100% and the program cannot run as fast as it needs to. I have a C++ program that has a pretty terrible




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

分享到: