Subject: Re: Antwort: Re: Antwort: Re: [Xenomai-core] Questions about pSOS task mode and task priority From: Philippe Gerum In-Reply-To: References: Content-Type: text/plain Date: Wed, 31 Jan 2007 01:42:17 +0100 Message-Id: <1170204137.21219.52.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Osterried Cc: xenomai@xenomai.org, Thomas Necker On Mon, 2007-01-29 at 17:41 +0100, Markus Osterried wrote: > Hi Philippe, > > see below a code snippet for demonstration of the task priority problem. > The expected behaviour is that the new task is running immediately after > lowering root's priority. > The log of the reached statements should therefor be: 1, 10, 2, 3, 4, 5 > But instead the log is: 1, 2, 3, 4, 10, 5, i.e. the new task is running > only after blocking root task. Ok, confirmed, I've spotted the issue. It's an interesting corner case due to the task creation/start protocol that definitely needs more brain cycles to be solved properly. More later, thanks for reporting this. -- Philippe.