I saw this trick mentioned in some code, although I'm not 100% sure if this trick is what you are looking for, however the code was this
Sleep (0);
Using Sleep(0) , you clear the CPU instructions and call the context switch ... Now you said โfor each coreโ, I donโt think that you can explicitly choose a kernel for this, how do you know which kernel the code that is needed to close the cache prefetch is executed ....
source share