Set the Priority of a Process By Name Automatically, in Vistaプロセスの優先度を設定した名前で自動的には、ビスタ
The other day I was playing around with the私は、他の日にして遊んでみた Image File Execution Options画像ファイルの実行オプション and Sysinternals’とsysinternals ' Process Monitorプロセスモニタ , in Vista.は、ビスタ。 I saw an interesting query take place.興味深いのクエリで行われるのが見えた。 Using notepad.exe as an example, I saw a query for a key called “PerfOptions” in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe] when I ran notepad.一例としてnotepad.exeを使用して、クエリのためのキーを見たと呼ばれる" perfoptions " [場合HKEY_LOCAL_MACHINE \ Software \マイクロソフト\ Windows NTの\ currentversion \画像ファイルの実行オプション\ notepad.exe ]ときメモ帳を走っています。 The result was NAME NOT FOUND, so I decided to rectify that.その結果は、名前が見つかりませんでしたので、是正することを決めた。 After adding a key named “PerfOptions”, I ran notepad again.名前の後のキーを追加する" perfoptions "は、私のメモ帳を再び走っています。 In Process Monitor, I saw queries for four values:プロセスを監視し、クエリのための4つの価値観を見た:
- IoPriority iopriority
- PagePriority pagepriority
- CpuPriorityClass cpupriorityclass
- WorkingSetLimitInKB workingsetlimitinkb
Because of recent explorations with process priorities*, CpuPriorityClass grabbed me right away.最近のexplorationsしているため*プロセスの優先順位は、すぐに私cpupriorityclassつかみ取った。 Looking at the見て SetPriorityClass setpriorityclass function, one can see the different values for the dwPriorityClass parameter.関数は、 1つは、別々の値を参照してくださいdwpriorityclassパラメータです。 I created a REG_DWORD named CpuPriorityClass in PerfOptions, and set the value to 0×80 in the hopes that notepad would launch with “HIGH_PRIORITY_CLASS”.私reg_dword名前cpupriorityclassでperfoptions作成し、値を設定するには、 0 × 80は期待してメモ帳を起動して" high_priority_class " 。 Instead, it launched with a priority of NORMAL_PRIORITY_CLASS (8) - the setting had not made any impact.その代わりに、それを開始して、優先順位のnormal_priority_class ( 8 ) -その前にどんな影響を与えるの設定はない。 Then, I set the value to 8 and launched notepad.その後、私は打ち上げの値を設定するとメモ帳を8 。 Notepad launched with a priority of 8.メモ帳を起動して、優先度の8 。 I changed the value to 4, and that had no impact.私に4の値を変更して、影響を与えることはなかった。 I changed the value to 0 - no impact.私の値を0に変更されました-インパクトない。 I tried 10 - no impact.私を試みた10 -インパクトない。 I couldn’t see any私はいかなる参照してください
…
Written by «/\/\Ø|ö±ò\/»®© on «書かれ/ \ / \ ø | ö ± ò \ / » ® ©上 January 27th, 2008 2008年1月27日 with して 1 comment 1件のコメント . 。
Read more articles on こちらの記事を読む otherSoftware othersoftware and と Process Monitor プロセスモニタ and と priority 優先順位 and と sysinternals sysinternals and と PowerShell powershell and と vista ビスタ . 。















