Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6192053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:52:38+00:00 2026-05-24T02:52:38+00:00

Is there a way to exclude a processor from normal scheduling? That is, using

  • 0

Is there a way to exclude a processor from normal scheduling?

That is, using sched_setaffinity 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.

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.


Note that I’m looking to schedule threads, not just high-level processes (this might make a difference in some cases).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:52:39+00:00Added an answer on May 24, 2026 at 2:52 am

    cgroups, or specifically, the cpuset part of the cgroups infrastructure is the way to do it in Linux. See section 1.4 “exclusive cpusets” in http://www.kernel.org/doc/Documentation/cgroups/cpusets.txt .

    Then again, if, as you say in a comment, your system does not have cpusets enabled, you’re out of luck.

    Also, what you’re asking for is perhaps slightly un-orthodox; perhaps if you were to explain what you’re actually trying to achieve people would be able to point you to alternative solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a simple way I can exclude nulls from affecting the avg? They
Is there a way to undo the 'exclude from project' operation in Visual Studio
Is there a way to tell a MonoDevelop project to exclude from source control
When specifing a dependencies using ant ivy, is there a way to exclude a
I will like to know that is there a way to exclude some fields
Is there a way to exclude some files from the compilation process? Or even
Is there any way by which we can find programmatically whether SQL Compact is
Is there a way to exclude code from inclusion into Cobertura coverage reports? We
Is there any way to exclude an element from the tab order of a
Is there a way to exclude primitive and Object properties within Serializable Object from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.