public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel Threads question on 2.4
@ 2003-02-04  0:52 Akram.Abou-Emara
  2003-02-04  0:59 ` Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Akram.Abou-Emara @ 2003-02-04  0:52 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I have a couple of questions:

Do kernel threads get preempted? Or do they have to
give up the CPU on their own? 

Are there any rules for what scheduling policies and
priority a kernel thread can have?
reparent_to_init()sets the scheduling policy to
SCHED_OTHER. Do you see a problem with changing the
scheduling policy to  SCHED_FIFO?

Thanks,
Akram

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Kernel Threads question on 2.4
  2003-02-04  0:52 Kernel Threads question on 2.4 Akram.Abou-Emara
@ 2003-02-04  0:59 ` Robert Love
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Love @ 2003-02-04  0:59 UTC (permalink / raw)
  To: Akram.Abou-Emara; +Cc: linux-kernel

On Mon, 2003-02-03 at 19:52, Akram.Abou-Emara@nokia.com wrote:

These questions might be better asked on the kernelnewbies list...

> Do kernel threads get preempted? Or do they have to
> give up the CPU on their own? 

Without the preemptive kernel, they are not preemptive.  With
preempt-kernel, they are.  They tend to run at elevated priorities
anyhow, so this is not so much of an issue.

> Are there any rules for what scheduling policies and
> priority a kernel thread can have?
> reparent_to_init()sets the scheduling policy to
> SCHED_OTHER. Do you see a problem with changing the
> scheduling policy to  SCHED_FIFO?

kernel threads can have any scheduling policy or priority - they really
do not differ much from regular threads (sans the lack of address
space).

Some kernel threads do indeed run with real-time policy.

	Robert Love


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-04  0:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-04  0:52 Kernel Threads question on 2.4 Akram.Abou-Emara
2003-02-04  0:59 ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox