Re: Preemptive linux
- From: Chris Friesen <cbf123@xxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 11:28:55 -0600
Alexander Krizhanovsky wrote:
David Schwartz wrote:
You only need to call 'preempt_check_resched' if
preemption might be disabled and you still want to be able to be
preempted at a particular point.
Did you mean thread can be preempted by timer interrupt (because of I
don't know any other way by which thread with infinite loop can be
preempted on UP machine)?
Any interrupt, not just timer. Keyboard, serial port, network packet, etc.
Basically, any point at which the kernel is not holding a spinlock (and a few other special cases) is a legal point to get preempted.
Chris
.
- References:
- Preemptive linux
- From: Rafael Almeida
- Re: Preemptive linux
- From: Alexander Krizhanovsky
- Re: Preemptive linux
- From: David Schwartz
- Re: Preemptive linux
- From: Alexander Krizhanovsky
- Preemptive linux
- Prev by Date: Re: Preemptive linux
- Next by Date: Re: Preemptive linux
- Previous by thread: Re: Preemptive linux
- Next by thread: Re: Preemptive linux
- Index(es):
Relevant Pages
|