[haiku-bugs] Re: [Haiku] #2817: setpriority and getpriority are missing to compile ocaml out of the box under Haiku

  • From: "leavengood" <trac@xxxxxxxxxxxx>
  • Date: Fri, 14 Jan 2011 19:32:07 -0000

#2817: setpriority and getpriority are missing to compile ocaml out of the box
under Haiku
---------------------------+------------------------------
  Reporter:  oco           |        Owner:  nobody
      Type:  enhancement   |       Status:  new
  Priority:  normal        |    Milestone:  R1
 Component:  System/POSIX  |      Version:  R1/Development
Resolution:                |     Keywords:
Blocked By:                |  Has a Patch:  0
  Platform:  All           |     Blocking:
---------------------------+------------------------------

Comment (by leavengood):

 Replying to [comment:7 bonefish]:
 >
 > No, but we can easily introduce per-process nice values. It's not even
 something the scheduler would need to know about. They could simply be
 applied to all threads of the process, e.g. by computing the Haiku thread
 priority from nice value and pthread scheduling priority.

 Alright so the only difference between what you suggest and what is done
 in renice is the pthread scheduling priority it taken into account.

 > ... or approximate them more correctly, as suggested above. At least
 that's what I would recommend to whoever wants to implement the
 functionality.

 OK I'll probably take a crack at it over the weekend and either I could
 attach a patch here or just commit it and it can be reviewed on the commit
 list. It is not like it could break anything.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/2817#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: