EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

<20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: base max thread priority
From: Till Straumann <[email protected]>
To: Jeff Hill <[email protected]>
Cc: 'Eric Norum' <[email protected]>, 'Marty Kraimer' <[email protected]>, "'Johnson, Andrew N.'" <[email protected]>
Date: Tue, 26 Nov 2002 16:09:42 -0800
Here's yet another idea how the runaway-task problem could be solved.

AFAIK, most OS provide a hook into the system timer ISR but not
into the console ISR [which makes what we discussed at JLAB less portable] - these hooks are vxWorks' watchdog timers, RTEMS' rtems_timers.

1) The shell task periodically resets (pets) a 'watchdog' counter.

2) A timer ISR increments 'watchdog'. Should 'watchdog' reach a critical
   'limit', this implies that the shell had no chance to pet.
   In this case, the ISR increments the task's priority and resets
   'watchdog'.

If a task with a priority > shell runs away, 2) will eventually raise
the shell's priority above the runaway task's and the user will regain control.

-- Till


Replies:
Re: base max thread priority Eric Norum
References:
RE: base max thread priority Jeff Hill

Navigate by Date:
Prev: Re: base max thread priority Till Straumann
Next: Re: base max thread priority Eric Norum
Index: <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: base max thread priority Jeff Hill
Next: Re: base max thread priority Eric Norum
Index: <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·