Lets say my Windows Server 2012 R2 machine has 8 logical cores. Using thread/process affinity, process priority class, and thread priority I can set 7 application threads to run on cores 1-7 and set their priority level to real-time/time-critical so they preempt all OS threads and run uninterrupted on those cores. The result of this should be that the OS can only run threads on core 0, and does so without any application threads to get in the way.
If my understanding of affinity and priority is correct and this scenario is possible, would that be a problem for the OS? Would any system behavior be affected? Is one core enough for the OS?
The reason for doing this would be to eliminate context switches and ensure the environment always has the same 7 worker threads running in parallel without interruption and without cache conflicts.