On 27 Feb 2004 16:23:05 GMT, Stephen Rasku wrote:
Is there a way to set the priority of a process (as opposed to a thread)
spawned by spawn() or equivalent programatically? We have a process
manager that spawns numerous programs and we want to modify it so that we
can spawn processes at different priorities.
Look at the (undocumented) param member of the inherit structure passed to
spawn(), along with the (undocumented) SPAWN_EXPLICIT_SCHED bit in the
flags (see /usr/include/spawn.h).
This works in 6.21B. I’m not sure why it is undocumented. Perhaps QSSL can