问题描述
大家好,
我已经完成了提高多线程系统性能的任务。通过切换到使用ThreadPool来生成线程,我可以看到线程输出有了可测量的改进量。
I had taken up the task of improving performance of a multi-threaded system. By switching to the use of a ThreadPool to generate threads, I could see that there was a measurable amount of improvement in the output of the threads.
开发是在一台机器上完成的8 gig Ram和Intel Core i5-2430M CPU @ 2.40GHz。但是,当我将应用程序移动到测试服务器(具有4 Gig Ram)和Intel Xeon CPU E5405 @ 2.00GHz时,我无法获得性能提升。
The development was done on a machine that has 8 gig Ram, and Intel Core i5-2430M CPU @ 2.40GHz. But when I moved the application to test-server, which has 4 gig Ram, and Intel Xeon CPU E5405 @ 2.00GHz, I am not able to get that performance improvement.
I我在两台机器上都运行和运行两个ThreadPool进行测试。
I am testing by running both, with and without ThreadPool on both machines.
可能是什么原因?
TIA
推荐答案
你的"工作"是什么?在做什么,你是如何测试ThreadPool的,你在比较它是什么?
What is your "work" doing, and how are you testing the ThreadPool, and what are you comparing it to?
这篇关于使用ThreadPool的性能改进在另一台机器上丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!