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

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 16 Jan 2011 10:40:12 -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 bonefish):

 Replying to [comment:10 leavengood]:
 > Hmmm, I was thinking it would just be a userland libroot change which
 called set_thread_priority and similar.

 Since one cannot access the pthread scheduling priority of other teams'
 threads, that would basically limit the implementation to what mmu_man's
 `renice` does. `getpriority()` would only be able to guess from the thread
 priorities and I don't think there is an interface to iterate through the
 processes of a process group, either.

 > I still think I could do it, but having it as a kernel change is a bit
 more complicated indeed. So I may just do it as a patch then, which I
 could later commit once it was reviewed.

 Feel free.

 > How do you do kernel work while actually running Haiku? I imagine it
 isn't too safe to mess with the kernel on the running system. Could I test
 with Qemu or similar? Or do you build onto another partition and test on
 that?

 I usually work under Linux with qemu (or VMware). If qemu under Haiku
 works, that would be an option, too, but the turn-around times under Linux
 are shorter. Net-booting a second machine is slower than using emulators.
 Working with two installations on one machine -- developing in one,
 testing with the other -- is forbiddingly time consuming.

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

Other related posts: