All of lore.kernel.org
 help / color / mirror / Atom feed
* CONFIG_PREEMPT and real time kthreads
@ 2008-01-18 18:03 Miles Bintz
  0 siblings, 0 replies; only message in thread
From: Miles Bintz @ 2008-01-18 18:03 UTC (permalink / raw)
  To: linux-kernel

I've been trying to find information about the effects of CONFIG_PREEMPT 
on real time kernel threads.   The description of CONFIG_PREEMPT says 
"...allow preemption of user processes that are executing system 
calls...".  Most of the discussion seems to revolve around the 
modification of the locking implementation.

Suppose:  I have two or more kernel threads using the SCHED_FIFO policy 
and they have differing priorities.  Lets pretend the high priority 
kthread is doing a down_interruptible() and the low priority kthread is 
cheerfully executing.  An interrupt fires and does an up() enabling the 
high priority kthread....  Heck, lets say there's no interrupt and the 
low priority kthread does the up().... Without compiling my kernel with 
CONFIG_PREEMPT=y, will the high priority task get scheduled during the 
up()?  Or will the low priority task run until it yields?   In general, 
I'm assuming the scheduler will always reschedule on return from 
interrupts and after the release of a synchronization primitive?

       Miles





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-18 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 18:03 CONFIG_PREEMPT and real time kthreads Miles Bintz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.