title: Linux reserve a processor for a group of processes (dynamically)
body: <p>Is there a way to exclude a processor from normal scheduling?</p>
  
  <p>That is, using <code>sched_setaffinity</code> I can indicate which processor a thread should run on, but I'm looking for kind of the inverse. That is, I want exclude a given processor from the normal scheduling, such that only processes which have been explicitly scheduled there can run there.</p>
  
  <p>I also know that during boot I can limit the processors used by the init process, thus all inherited process.  I was however hoping there would be a more dynamic solution than this -- something I can change post-boot.</p>
  
  <hr>
  
  <p><em>Note that I'm looking to schedule threads, not just high-level processes (this might make a difference in some cases).</em></p>