From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C3463FD.4040804@domain.hid> Date: Wed, 07 Jul 2010 13:24:45 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4C345529.8010309@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] task management, multi-thread, multi-core List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Everett Wang Cc: xenomai@xenomai.org Everett Wang wrote: > If the second task is running already, when the > higher priority > task is waiting for an outside event, then the event comes, the high > priority task > has to wait until the lower priority one to finish? No. Xenomai scheduler is preemptive: http://en.wikipedia.org/wiki/Preemptive_multitasking > Do you mean that if I need memory isolation, I use process, if I am sure my code > has no memory problem, I should choose thread for better performance? Or it > is more complex than this? You can never be sure that code has no memory problem. It is more complex than that, for instance, whether the threads are inter-dependent should be taken into account. -- Gilles.