Re: kernel thread priority??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 20, 2002 at 05:22:33PM -0800, Galchin Vasili wrote:
>  I created a kernel thread in a driver I have written. When it is in
>  the RUNNING state it takes over everything, i.e. no other processes
>  run. I suspect it's priority is too high so that it doesn't get
>  preempted (I don't want to call schedule().)   How do I lower a
>  kernel thread's priority so that it is periodically preempted? 

Kernel threads are not pre-empted in 2.2. It takes extra patches to make
them pre-emptible in 2.4. It is a config option to allow pre-emption of
kernel threads in 2.5.

Call schedule() periodically or do something similar.

-- 
http://www.wirex.com/

Attachment: pgp00218.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux