From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F0F3913.8080205@domain.hid> Date: Thu, 12 Jan 2012 20:48:35 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] Question on preempting a linux task List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan-Erik Lange Cc: xenomai@xenomai.org On 01/12/2012 04:58 PM, Jan-Erik Lange wrote: > > Hello, > > Does the Xenomai scheduler has to interact with the Linux sheduler in > order to preempt the tasks which are managed by it? Or is the Xenomai > scheduler repealing the whole linux scheduler when it wants to run a > task and and linux is running a task? > > Best regards Jan No, xenomai may preempt linux in the middle of almost anything, that is the whole point of being based on the adeos patch. However, when a task needs to change scheduler, the two schedulers have to cooperate. If you are interested in the details, see xnshadow_relax and xnshadow_harden in ksrc/nucleus/shadow.c in xenomai sources. -- Gilles.