[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thread scheduling and interrupts
- To: "Realtime Linux" <rtl@rtlinux.org>
- Subject: thread scheduling and interrupts
- From: "Rini van Zetten" <Rini@Arvoo.nl>
- Date: Wed, 23 May 2001 14:21:00 +0200
Hi all,
I' ve a problem regarding scheduling tasks. let me explain my software :
If have one low priority task which consumes a large part of cpu time.
If have one high priority task which is started by a interrupt routine and
do a little processing.
If have an interrupt routine which wakes up the high priority task.
The problem is:
When the interrupt occurs, the high priority task is fired. runs until it
goes asleep again. after this the low priority task get running again (it
was stopped by the interrupt) BUT the interrupt routine is not finished yet.
After the low priority task falls asleep, and eventualy the interrupt
routine ends.
How can i let the interrupt routine ends immediately ???? (if the interrupt
routine is not finished, new interrups are blocked);
Rini
++++++++++++++++++++++++++++++++++++++
Rini van Zetten, Rini@Arvoo.nl
ARVOO Engineering BV
Tel. +31 - 348 - 413 897
Fax. +31 - 348 - 417 242
P.O. box 439
3440 AK Woerden, The Netherlands
++++++++++++++++++++++++++++++++++++++