Message-ID: <476D615A.7000308@domain.hid> Date: Sat, 22 Dec 2007 20:11:22 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <1078761341.20071030094041@domain.hid> In-Reply-To: <1078761341.20071030094041@domain.hid> Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: Philippe Gerum Subject: Re: [Xenomai-help] how to stop a runaway task Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Carsten_Spie=DF?= Cc: xenomai@xenomai.org Carsten Spie=DF wrote: > Hello, >=20 > i'm running Xenomai 2.3.2 on a PPC target with Linux 2.4.25 kernel. > I trying to programm a supervising task, that detects a runaway task > and suspend it. >=20 > My aproach was to make a high priority periodic task to look if > the low prio task is running correctly and suspend it when it detects > failure. > But this approach didn't work, the higer prio task isn't called unless > the lower prio task gives up cpu (by calling e.g. rt_task_yield or > nanosleep) (see attached demo source) >=20 > When not being cooperative (removing the rt_task_yield in the demo) > my system is reset after some seconds. >=20 > Why isn't my supervising task scheduled? >=20 This new I-pipe patch for 2.4.25 may fix the issue: http://download.gna.org/adeos/patches/v2.4/ppc/adeos-ipipe-2.4.25-ppc-DENX-= 1.2-02.patch --=20 Philippe.