设置应用程序的资源限制(CPU使用率) [英] Set an application's resource limits (CPU usage)

查看:1477
本文介绍了设置应用程序的资源限制(CPU使用率)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个奇怪的我知道,
,但我想限制一个程序(例如winrar应用程序)资源使用。

It's a little strange I know, but I want to limit a program (for example the winrar app) resource usage.

原因:
我有一台旧笔记本电脑,有过热的问题,所以如果我想做一个计算密集型任务(压缩一个> 10GB的文件夹),我的笔记本电脑过热,并关闭。

The reason: I have an old laptop, with overheating problem, so if I want to do a calculate intensive task (compress a >10GB folder), my laptop overheats and turns off.

问题:
是否可以限制应用程序的资源/ CPU使用率?例如,我可以设置某种方式,该winrar只能使用我的CPU的50%?

The question: Is it possible to limit an application's resource/CPU usage? For example, can I set somehow, that winrar can only use my CPU's 50%?

我使用Windows 8.1,
,但回答其他操作系统是受欢迎的。

I use windows 8.1, but answer for other OS is welcome.

推荐答案

请参阅有没有可以限制进程CPU使用率的解决方案?一般答案。

WinRAR 本身具有命令行开关 -ri ,请参阅 WinRAR

WinRAR itself has the command line switch -ri, see in help of WinRAR the page with title:

Switch -RI<p>[:<s>] - set priority and sleep time

例如使用命令行,例如

WinRAR.exe a -ri1:100 Backup.rar *

会导致压缩所有文件在当前工作目录中,默认设置使用最低任务优先级,每次读取或写入操作之间的休眠时间为100 ms。

results in compressing all files in current working directory with default settings using lowest task priority and with 100 ms sleep time between each read or write operation.

这篇关于设置应用程序的资源限制(CPU使用率)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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