lkml.org 
[lkml]   [2003]   [Nov]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 7 Nov 2003 04:04:27 -0800
FromFrank Cusack <>
Subjectpreemption when running in the kernel
(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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [from the cache]
©2003-2008