2004-04-15 10:02:47

by MNH

[permalink] [raw]
Subject: Interrupt handler

hi,

I have a general question.

If a process is executing a system call, and an interrupt is invoked,
the process blocks. Now since interrupt handlers cannot block, the time
for which the IH runs is taken out of the process's time-slice ( Is this
right ?).

What if the IH takes up all of the process's time-slice, does the
process gets knocked off the current list and thrown into the expired
list or is there something more to it?

thanks for your time


2004-04-17 18:51:36

by Karim Yaghmour

[permalink] [raw]
Subject: Re: Interrupt handler


MNH wrote:
> If a process is executing a system call, and an interrupt is invoked,
> the process blocks. Now since interrupt handlers cannot block, the time
> for which the IH runs is taken out of the process's time-slice ( Is this
> right ?).
>
> What if the IH takes up all of the process's time-slice, does the
> process gets knocked off the current list and thrown into the expired
> list or is there something more to it?

This is the kind of thing LTT will allow you to see:
http://www.opersys.com/LTT/

Karim
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || [email protected] || 1-866-677-4546