public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* preemption when running in the kernel
@ 2003-11-07 12:04 Frank Cusack
  2003-11-08 13:01 ` Ingo Oeser
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Cusack @ 2003-11-07 12:04 UTC (permalink / raw)
  To: lkml

(2.4 kernel)

When a process is running in the kernel, can it be pre-empted at
any time?  (Unless you explicity disable preemption.)  I think not,
because wouldn't it be unsafe to grab a spinlock?  Or does grabbing a
spinlock disable preemption.  I mean spin_lock(), not spin_lock_irqsave().

Secondly, can multiple processes be in the kernel at the same time?  I
think so, that's the reason for the fine grained locks instead of the BKL.
Or do fine grained locks only serve to allow preemption.

thanks!
/fc


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

end of thread, other threads:[~2003-11-09 17:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-07 12:04 preemption when running in the kernel Frank Cusack
2003-11-08 13:01 ` Ingo Oeser
2003-11-09  0:23   ` Robert Love
2003-11-09 10:04     ` Frank Cusack
2003-11-09 17:56       ` Robert Love

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