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 6785715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:09:38+00:00 2026-05-26T17:09:38+00:00

I wanted to modify the linux kernel code that dynamically changes the process priority.

  • 0

I wanted to modify the linux kernel code that dynamically changes the process priority.

I have Ubuntu 10.10 and I downloaded linux 2.6.37. What I found was that in 2.6.37 version there is no concept of dynamically changing the priority of the process. [In CentOS there is a recalc_task_prio() function that dynamically changes the process priority].

I wanted to know if anyone is aware of any other ubuntu kernel version that supports the functionality of dynamically changing the process priority (based on penalizing the process priority if task is cpu bound and consuming lot of cpu)?

I mostly refering to this link – http://www.ibm.com/developerworks/linux/library/l-scheduler/

Thanks in Advance,

  • 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-26T17:09:39+00:00Added an answer on May 26, 2026 at 5:09 pm

    In Linux v2.6.23 a new CFS scheduler was integrated that relies less on the HZ and more on nanoseconds of execution time.

    All processes are stored in a red-black tree that makes it cheap O(1) to find the left-most (and thus most-deserving) task to execute. Periodically (task_tick()) the system checks to see if another process might be “more deserving” and preempt a running task. (Of course, tasks can yield (yield_task()) on their own and newly-runnable tasks can preempt a running task (check_preempt_curr()). The time a process spent running is accounted to it and it is re-inserted into the tree O(log(N)) to find its new placement in the RB-tree.

    Thus, tasks that wait on IO are accounted very little time and aren’t moved very far away in the tree — which corresponds to a priority boost. Tasks that don’t sleep on IO event will use comparatively more CPU time before they are preempted by a higher-priority task.

    For more details, be sure to read the Documentation/scheduler/ documentation and the kernel/sched* implementation files.

    If it were my homework project to fiddle with schedulers (as used to be common in the olden days) I’d look seriously at adding a new realtime scheduling class like SCHED_FIFO or SCHED_RR (depending upon which one was closer to the scheduler design being discussed) and fiddling with priorities of the tasks that way. It might be a little steep for an introductory OS course to do this — an older Linux or older BSD kernel might be easier to play with.

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

Sidebar

Related Questions

I have an Ubuntu Server and wanted to install subversion and set up some
I have a row of data that I need to modify in a database,
It seems to have modified the original string that I wanted to split specifying
I have a jQuery slideshow code that works fine with the following HTML structure:
I wanted to modify a column in a sql server 2005 table to IDENTITY(1,1)
Wanted to know if someone had a suggestion on code or maybe there's a
I wanted some of those spiffy rounded corners for a web project that I'm
I have performed some initial research, but have not found exactly what I am
Right now on my website I have the following JavaScript that shows and hides
I have a method Modify which doing a operation ClientModify inside. public bool Modify()

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.