[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Kernel Threads question on 2.4
On Mon, 2003-02-03 at 19:52, 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

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

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.042 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site