Is there any way to dedicate cpu cores exclusively for a process in Windows 10?
<p>I want to dedicate some cpu cores exclusively for my real-time data streaming application because I want to ensure that this process is always running without context-switching. (Ensuring no application except my process running on that core)</p>

<p>It seems there's a working solution for Linux. Is there any way to do this for Windows 10?</p>

<p>Any solution will be greatly appreciated.</p>

<p>(I've thought about setting process affinity in task manager. 
But to dedicate cpu cores(for example only core 1) exclusively for my process, I have to uncheck core 1 in process affinity window for all processes, and only check core 1 for my process. 
However, this solution is too tedious physical labor and seems hard to do it programmatically.)</p>