I'm doing a PC based automation programs in C# and I have some problem when Windows start using some of the CPU I have assign to my program. I know i can specify which core can execute a process by looping the running processes in C# and changing their affinity but I'm looking for a way to do it automatically. Is there any way to force a program to use, by example, only the 2 first core by default, so if an application start after mine it will not start using " my " core ?
Thank you!