* scheduler parameter inheritance on clone()
@ 2005-11-07 17:08 Christopher Friesen
2005-11-07 18:25 ` scheduler parameter inheritance on clone() -- correction Christopher Friesen
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Friesen @ 2005-11-07 17:08 UTC (permalink / raw)
To: linux-kernel
The pthreads standard specifies that the default behaviour is that new
threads should be created with the SCHED_OTHER policy and a priority of 0.
However, it appears that the kernel will create new tasks (be they
threads or processes) with the same settings as the parent.
If CLONE_THREAD is set, should the kernel perhaps set the policy and
priority as specified by pthreads?
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: scheduler parameter inheritance on clone() -- correction
2005-11-07 17:08 scheduler parameter inheritance on clone() Christopher Friesen
@ 2005-11-07 18:25 ` Christopher Friesen
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Friesen @ 2005-11-07 18:25 UTC (permalink / raw)
Cc: linux-kernel
Friesen, Christopher [CAR:VC21:EXCH] wrote:
>
> The pthreads standard specifies that the default behaviour is that new
> threads should be created with the SCHED_OTHER policy and a priority of 0.
Sorry, I've since found out that this was actually an issue with the man
pages (same problem on two different distros). The man pages were still
from LinuxThreads, but the NPTL behaviour was different.
Apparently the spec doesn't actually specify the default behaviour, it's
implementation dependent.
My mistake.
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-07 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 17:08 scheduler parameter inheritance on clone() Christopher Friesen
2005-11-07 18:25 ` scheduler parameter inheritance on clone() -- correction Christopher Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox