如何限制CPU资源/Shockwave Flash
我可以设置特定程序或进程可以使用的 CPU 资源的最大百分比吗?我想使用可执行文件名称而不是它的 pid,因为我希望某些可执行文件始终在资源受限的情况下运行。
我提出这个要求的原因是我对 Shockwave Flash 的行为方式感到厌倦。在我的浏览器中画一些愚蠢的东西不可能占用我的双核CPU的50%、80%、99%!
谢谢你,
Pietro
MacBook Pro 2009 - MacOS X 10.6.4 - 铬 6.0 - Firefox
PS:现在,当我的风扇开始运行时,我知道了原因,并且知道如何临时修复它:我杀死了 Shockwave Flash,一切都恢复正常。
Can I set a maximum percentage of CPU resources a specific program or process can use? I want to use the executable name instead of its pid, because I would like certain executables to always run with constrained resources.
The reason I ask for that is that I am bored of the way Shockwave Flash behaves. It is not possible that to draw a few stupid things in my browser it takes 50%, 80%, 99% of my dual core CPU!
Thank you,
Pietro
MacBook Pro 2009 -
MacOS X 10.6.4 -
Chrome 6.0 -
Firefox
P.S.: Now, when my fan starts running I now the reason and I know how to temporarily fix it: I kill Shockwave Flash and everything is back as normal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想在超级用户中提出您的问题。这听起来更像是硬件/软件问题,而不是实际的编程问题。您责怪 Shockwave Flash,并且不可否认,一些设计糟糕的应用程序会降低您的 CPU 性能,但并非所有应用程序都如此。
我还有一台 Macbook Pro,较旧的和较旧的。实际上比你的慢。虽然我开发 Flash 应用程序,但粉丝们从来不打扰我!如果你的诊断是准确的,我想我根本无法工作!
You may want to ask your question in SuperUser. It sounds more like a hardware/software issue than actually a programming issue. You blame Shockwave Flash and admittedly some badly designed apps will bring your CPU down but not all apps.
I also have a Macbook Pro, older & slower than yours actually. The fans never bother me although I develop Flash apps! If your diagnostic was accurate, I don't think I'll be able to work at all!