This content has been marked as final. Show 2 replies
I doubt it is possible. I am not even sure how you would do that with the windows API. Not sure it is even logical. Since a thread switch can occur at any time that means that an atomic operation would be needed to recover it and that going up/down the call stack to that point would all be places where it would become invalid.
Following is closest I found in the windows API. And I don't think "ideal" processor is the same as current processor.