* How does the kernel interrupt a user process with code while (1) {}?
@ 2006-11-01 9:59 Xiao Niu
2006-11-01 11:02 ` Jan Engelhardt
[not found] ` <df9815e70611010215i69a8fbe5id381bdaa357388ae@mail.gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Xiao Niu @ 2006-11-01 9:59 UTC (permalink / raw)
To: linux-kernel
As title, thanks ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How does the kernel interrupt a user process with code while (1) {}?
2006-11-01 9:59 How does the kernel interrupt a user process with code while (1) {}? Xiao Niu
@ 2006-11-01 11:02 ` Jan Engelhardt
2006-11-01 15:12 ` Xiao Niu
[not found] ` <df9815e70611010215i69a8fbe5id381bdaa357388ae@mail.gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2006-11-01 11:02 UTC (permalink / raw)
To: Xiao Niu; +Cc: linux-kernel
>
> As title, thanks ;-)
Timer interrupt.
-`J'
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How does the kernel interrupt a user process with code while (1) {}?
[not found] ` <df9815e70611010215i69a8fbe5id381bdaa357388ae@mail.gmail.com>
@ 2006-11-01 15:12 ` Xiao Niu
0 siblings, 0 replies; 5+ messages in thread
From: Xiao Niu @ 2006-11-01 15:12 UTC (permalink / raw)
To: albcamus@gmail.com; +Cc: linux-kernel
I'm reading LKD2, after knowing how processes are managed, I'm eager
to know that question, thanks.
On 11/1/06, albcamus@gmail.com <albcamus@gmail.com> wrote:
> Hi pal,
>
> I think you'd better read some materials on the kernel first. say LKD2.
> Alternatively, you can ask this question elsewhere but not lkml.
>
> Regards,
>
>
>
> 2006/11/1, Xiao Niu <gniuxiao.mailinglist@gmail.com>:
> > As title, thanks ;-)
> > -
> > 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/
> >
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How does the kernel interrupt a user process with code while (1) {}?
2006-11-01 11:02 ` Jan Engelhardt
@ 2006-11-01 15:12 ` Xiao Niu
2006-11-01 21:03 ` David Schwartz
0 siblings, 1 reply; 5+ messages in thread
From: Xiao Niu @ 2006-11-01 15:12 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: linux-kernel
Thanks.
On 11/1/06, Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
> >
> > As title, thanks ;-)
>
> Timer interrupt.
>
>
> -`J'
> --
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How does the kernel interrupt a user process with code while (1) {}?
2006-11-01 15:12 ` Xiao Niu
@ 2006-11-01 21:03 ` David Schwartz
0 siblings, 0 replies; 5+ messages in thread
From: David Schwartz @ 2006-11-01 21:03 UTC (permalink / raw)
To: Linux-Kernel@Vger. Kernel. Org
> Thanks.
>
> On 11/1/06, Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
> > >
> > > As title, thanks ;-)
> >
> > Timer interrupt.
Other interrupts too. For example, if a disk I/O operation completes (or a
network packet is received) and generates an interrupt, the kernel could use
that interrupt to switch to another process made ready-to-run by the disk
operation or data received over the network.
Any interrupt can interrupt a user process.
DS
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-01 21:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 9:59 How does the kernel interrupt a user process with code while (1) {}? Xiao Niu
2006-11-01 11:02 ` Jan Engelhardt
2006-11-01 15:12 ` Xiao Niu
2006-11-01 21:03 ` David Schwartz
[not found] ` <df9815e70611010215i69a8fbe5id381bdaa357388ae@mail.gmail.com>
2006-11-01 15:12 ` Xiao Niu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox