I have a need to move one process to a vacant core – but is the core vacant? Does it stay vacant? Step 1 – move the process to a core, Step 2 (which should happen before Step 1) is to see what core has least activity, evict the squatters to another core, then move the relevant process.
- PowerShell: List processes currently using the most CPU
- Listing processes by cpu
- Moving a process to a new cpu – powershell
- running a sub-shell as an admin user w. a UAC prompt
- Odd Math I required
- flip a bit in a mask
- converting to hex
- How to convert a simple integer to a larger one that can cast to an IntPtr use [Convert]::ToInt32 <- this can then convert to the pointer required by the .ProcessorAffinity property
- “using write-host is almost always the wrong…” … I agree. Use write-output if you want to pipe something to a file using the > operator