Solved Set AFFINITY of a game

beret21

New member
Power User
Local time
11:41 PM
Messages
211
I have searched a lot but couldn't find the command to set the affinity of a process that is already running.

All the examples i came across are to start a program with desired affinity but none showed how to change the affinity of a program already running.

For example i have notepad.exe running and i want it to use only core 2 and three. What cmd command can be used for that
 

My Computer My Computer

Computer Manufacturer/Model Number
INTEL
OS
Windows 7 Ultimate x64
CPU
DUAL CORE e5700
Motherboard
DG41Wv
Memory
4GB ddr3 kingston
Graphics Card(s)
9500gt IGB ddr2
Sound Card
Built-in realteck
Monitor(s) Displays
SAMSUNG sync 73
Screen Resolution
1024x768
Hard Drives
80GB
PSU
400W Enermax
Case
SV
Cooling
Stock
Keyboard
-
Mouse
DELL
Internet Speed
1Mbps
Other Info
WHAT U WANNA KNOW !!!
In task manager, in the processes tab search the process. The context menu contains a "set affinity" option that allows to chose which CPUs will run that program.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
ASUS X550ZE
OS
Windows 7 Home Premium 64-BIT
CPU
AMD A8 7200P
Motherboard
N/A
Memory
8GB 1600mhz
Graphics Card(s)
Radeon R5 (APU) + Radeon R5 M230 2GB Dual Graphics
Sound Card
Realtek ALC269 with SonicMaster
Monitor(s) Displays
Laptop Display
Screen Resolution
1920 x 1080 @60hz
Hard Drives
WDC WD50 00LPVX-80V0TT0 (500GB)
PSU
Laptop Charger
Mouse
ARMAGGEDON TEXTRON SCORPION 7
Internet Speed
100 mbps DOWN / 50 mbps UP
Antivirus
Windows Defender
Browser
Mozzila FireFox, Valve Steam in-game internet browser

My Computer My Computer

Computer Manufacturer/Model Number
INTEL
OS
Windows 7 Ultimate x64
CPU
DUAL CORE e5700
Motherboard
DG41Wv
Memory
4GB ddr3 kingston
Graphics Card(s)
9500gt IGB ddr2
Sound Card
Built-in realteck
Monitor(s) Displays
SAMSUNG sync 73
Screen Resolution
1024x768
Hard Drives
80GB
PSU
400W Enermax
Case
SV
Cooling
Stock
Keyboard
-
Mouse
DELL
Internet Speed
1Mbps
Other Info
WHAT U WANNA KNOW !!!
Well, unfortunately there isn't one.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
ASUS X550ZE
OS
Windows 7 Home Premium 64-BIT
CPU
AMD A8 7200P
Motherboard
N/A
Memory
8GB 1600mhz
Graphics Card(s)
Radeon R5 (APU) + Radeon R5 M230 2GB Dual Graphics
Sound Card
Realtek ALC269 with SonicMaster
Monitor(s) Displays
Laptop Display
Screen Resolution
1920 x 1080 @60hz
Hard Drives
WDC WD50 00LPVX-80V0TT0 (500GB)
PSU
Laptop Charger
Mouse
ARMAGGEDON TEXTRON SCORPION 7
Internet Speed
100 mbps DOWN / 50 mbps UP
Antivirus
Windows Defender
Browser
Mozzila FireFox, Valve Steam in-game internet browser
Well, unfortunately there isn't one.

O :shock: There is to set a priority but none there to set affinity i should goto microsoft then !
 

My Computer My Computer

Computer Manufacturer/Model Number
INTEL
OS
Windows 7 Ultimate x64
CPU
DUAL CORE e5700
Motherboard
DG41Wv
Memory
4GB ddr3 kingston
Graphics Card(s)
9500gt IGB ddr2
Sound Card
Built-in realteck
Monitor(s) Displays
SAMSUNG sync 73
Screen Resolution
1024x768
Hard Drives
80GB
PSU
400W Enermax
Case
SV
Cooling
Stock
Keyboard
-
Mouse
DELL
Internet Speed
1Mbps
Other Info
WHAT U WANNA KNOW !!!

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Okay folks I'm lost again.
With beret21 system specs, why would one want to do such a thing?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
PowerShell can set a process' affinity. See SO answer.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top