From: Scott Lovenberg <scott.lovenberg@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: mixing interupts and threads.
Date: Mon, 07 Jul 2008 04:56:12 +0000 [thread overview]
Message-ID: <4871A1EC.2070405@gmail.com> (raw)
In-Reply-To: <48719C96.6010503@gmail.com>
ravikumar wrote:
> Hello All ,
> I've a few questions.
> 1. Lets suppose i've some critical section and it is synchronized with
> locks. A thread came and it's execution is in the middle of
> critical section, at this time an interrupt was occurred which also
> executes critical section. As interrupts can't wait on any lock it
> will get lock and try to execute the critical section and above thread
> was not yet completed. So inconsistency . How this was handled in Linux.
> 2.Some process is running in kernel mode, at this a kill was sent to
> this process, does this signal will delivered to the process while it
> is in kernel mode.
>
> And also please provide some links how threads ,signals and
> interrupts will be mixed.
>
> Regards,
> Ravikumar.
1.)This should play out slightly different on uniprocessor vs. SMP, but,
IIRC, during a critical section on uniprocessor IRQs are masked and
queued as they come in. In SMP, they should be routed to another
processor, which should queue them if they need locked resources.
Someone please correct me if I'm incorrect.
2.)I do not know the answer to this question. :) Does anyone else know?
next prev parent reply other threads:[~2008-07-07 4:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 4:45 mixing interupts and threads ravikumar
2008-07-07 4:56 ` Scott Lovenberg [this message]
2008-07-07 10:19 ` Matthew Wilcox
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=4871A1EC.2070405@gmail.com \
--to=scott.lovenberg@gmail.com \
--cc=kernel-janitors@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 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.