How to set processor affinity from Batch File for Windows XP

本文介绍如何使用Microsoft Sysinternals套件中的PsExec工具来设置Windows XP系统的处理器亲和性。PsExec能够远程运行命令,并通过-a标志指定处理器运行的应用程序。例如,要让应用程序仅在CPU2和CPU4上运行,则使用-a2,4参数。

Microsoft's Sysinternal's psexec -a flag can set processor affinity on Windows XP

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

 

Usage: psexec [//computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,... ] cmd [arguments]

computer Direct PsExec to run the application on the computer or computers specified. If you omit the computer name PsExec runs the application on the local system and if you enter a computer name of "//*" PsExec runs the applications on all computers in the current domain.
@file Directs PsExec to run the command on each computer listed in the text file specified.
-a Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter: "-a 2,4"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值