如何限制CPU资源/Shockwave Flash

发布于 2024-09-18 23:35:14 字数 343 浏览 5 评论 0原文

我可以设置特定程序或进程可以使用的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若无相欠,怎会相见 2024-09-25 23:35:14

您可能想在超级用户中提出您的问题。这听起来更像是硬件/软件问题,而不是实际的编程问题。您责怪 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文