Messages in this thread | | | Subject | Re: [PATCH] [request for inclusion] Realtime LSM | From | "Jack O'Quin" <> | Date | Sun, 16 Jan 2005 17:57:23 -0600 |
| |
> * Jack O'Quin <joq@io.com> wrote: >> According to the manpage, nice(2) is per-process not per-thread. That >> does not give the granularity we need.
Ingo Molnar <mingo@elte.hu> writes: > the manpage is incorrect - sys_nice() is per-thread. (Btw., you could > use setpriority() too.)
OK. Where is this stuff documented?
BTW, I think this violates POSIX, which states...
The nice value set with nice() shall be applied to the process. If the process is multi-threaded, the nice value shall affect all system scope threads in the process.
(It does not affect SCHED_FIFO or SCHED_RR threads, however.)
Is it possible to call sched_setscheduler() with a thread ID instead of a pid? That's what I really need. JACK sets and resets the thread priorities from a different thread. -- joq - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |