From: Frank Cusack <fcusack@fcusack.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: preemption when running in the kernel
Date: Fri, 7 Nov 2003 04:04:27 -0800 [thread overview]
Message-ID: <20031107040427.A32421@google.com> (raw)
(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
next reply other threads:[~2003-11-07 22:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 12:04 Frank Cusack [this message]
2003-11-08 13:01 ` preemption when running in the kernel Ingo Oeser
2003-11-09 0:23 ` Robert Love
2003-11-09 10:04 ` Frank Cusack
2003-11-09 17:56 ` Robert Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031107040427.A32421@google.com \
--to=fcusack@fcusack.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox