From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Questions about preemption and concurrency
Date: Fri, 27 May 2011 17:04:01 +0200 [thread overview]
Message-ID: <20110527150401.GA1532@debian.debian> (raw)
In-Reply-To: <308552.44045.qm@web137608.mail.in.yahoo.com>
On Fri, May 27, 2011 at 05:14:51PM +0530, Naman shekhar Mishra wrote:
> Because the modules run as part of the kernel and no two processes
> can run in the kernel at the same time? Or my question is wrong
> since they CAN run in the kernel at the same time (like when one
> process waits for I/O completion and another is scheduled to run
> which then makes a system call)?
I'm not sure what "run in the kernel" means here, but there can
definetely be more than one process waiting in a system call (e.g.
in a read() on a tty). IIUC, almost any "sleeping" process is.
Processes that wait for disk IO are in "uninterruptible" state which
also allows other processes to run and do system calls.
On SMP systems, where code is really run in parallel, certain resources
and code paths (e.g. ioctl, some file systems), used to be protected by
the Big Kernel Lock, which has just recently been removed.
HTH,
Jonathan Neusch?fer
next prev parent reply other threads:[~2011-05-27 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 11:44 Questions about preemption and concurrency Naman shekhar Mishra
2011-05-27 13:21 ` Daniel Baluta
2011-05-27 15:04 ` Jonathan Neuschäfer [this message]
2011-05-27 16:09 ` Michael Blizek
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=20110527150401.GA1532@debian.debian \
--to=j.neuschaefer@gmx.net \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).