質問

があるのは、Windowsと同等のUnixのコマンド nice?

私は具体的にはにんにくのたっぷり入ったから利用可能なフリーダイヤルでは、コマンドライン ない の設定が優先"メニューからタスクマネージャー。

私の試みでこGoogleれを妨げる者でなくより良い形容詞.

役に立ちましたか?

解決

を設定したい場合は優先したりすることでプロセスを使用できるの起動コマンド

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/WAIT] [/B] [command/program] [parameters]

使用の低てbelownormalを設定するオプションの優先順位の開始コマンド/プログラム。う最も簡単な解決策です。Noダウンロードまたはスクリプト。の他のソリューションも作業を実行されてprocsものです。

他のヒント

ご利用の場合 PowerShell, が書けるよう変更したときに優先します。また、以下のユー機能の Monadブログ:

function set-ProcessPriority { 
    param($processName = $(throw "Enter process name"), $priority = "Normal")

    get-process -processname $processname | foreach { $_.PriorityClass = $priority }
    write-host "`"$($processName)`"'s priority is set to `"$($priority)`""
}

からのユー迅速かつまいもの:

set-ProcessPriority SomeProcessName "High"

か検討することを ProcessTamer この"automatize"に格下げまたはグレードアッププロセス優先度に基づく様を設定します。

いので、二年とする。でも本当に効果的!

から http://techtasks.com/code/viewbookcode/567

# This code sets the priority of a process

# ---------------------------------------------------------------
# Adapted from VBScript code contained in the book:
#      "Windows Server Cookbook" by Robbie Allen
# ISBN: 0-596-00633-0
# ---------------------------------------------------------------

use Win32::OLE;
$Win32::OLE::Warn = 3;

use constant NORMAL => 32;
use constant IDLE => 64;
use constant HIGH_PRIORITY => 128;
use constant REALTIME => 256;
use constant BELOW_NORMAL => 16384;
use constant ABOVE_NORMAL => 32768;

# ------ SCRIPT CONFIGURATION ------
$strComputer = '.';
$intPID = 2880; # set this to the PID of the target process
$intPriority = ABOVE_NORMAL; # Set this to one of the constants above
# ------ END CONFIGURATION ---------

print "Process PID: $intPID\n";

$objWMIProcess = Win32::OLE->GetObject('winmgmts:\\\\' . $strComputer . '\\root\\cimv2:Win32_Process.Handle=\'' . $intPID . '\'');

print 'Process name: ' . $objWMIProcess->Name, "\n";

$intRC = $objWMIProcess->SetPriority($intPriority);

if ($intRC == 0) {
    print "Successfully set priority.\n";
}
else {
    print 'Could not set priority. Error code: ' . $intRC, "\n";
}

PrcViewうにコマンドラインなどの

http://www.teamcti.com/pview/prcview.htm

(チェックインはphのパラメータ)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top