#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: ---------------------------+------------------------------ Changes (by bonefish): * version: R1/pre-alpha1 => R1/Development Comment: Replying to [comment:6 leavengood]: > Can we really implement these properly if we don't have nice values for processes which the scheduler uses? 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. > Do we even want to add these Unixy nice values? Seems like it might be an archaic concept in the modern world of threads. At least they shouldn't be complicated to implement and wouldn't get in the way either. > So either we just don't implement these, or we just do a fairly dumb mapping like the renice command does and call that good enough. ... or approximate them more correctly, as suggested above. At least that's what I would recommend to whoever wants to implement the functionality. -- Ticket URL: <http://dev.haiku-os.org/ticket/2817#comment:7> Haiku <http://dev.haiku-os.org> Haiku - the operating system.