使用ThreadPool的性能改进在另一台机器上丢失 [英] Performance Improvements of using ThreadPool are lost on Another Machine

查看:52
本文介绍了使用ThreadPool的性能改进在另一台机器上丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经完成了提高多线程系统性能的任务。通过切换到使用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

推荐答案

这在很大程度上取决于相关应用程序。  如果你受内存限制,可能就是缺少RAM。  另一台机器可能内存较慢,而且处理器速度肯定较慢,因此根据您使用的同步情况,
可能还会出现问题。

It depends a lot on the application in question.  If you're memory bound, the lack of RAM might be the problem.  The other machine may have slower memory, and definitely has a slower processor, so depending on what synchronization you're using, there may also be issues involved there.

你的"工作"是什么?在做什么,你是如何测试ThreadPool的,你在比较它是什么?

What is your "work" doing, and how are you testing the ThreadPool, and what are you comparing it to?


这篇关于使用ThreadPool的性能改进在另一台机器上丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆