From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Everett Wang <everteq@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] task management, multi-thread, multi-core
Date: Wed, 07 Jul 2010 13:24:45 +0200 [thread overview]
Message-ID: <4C3463FD.4040804@domain.hid> (raw)
In-Reply-To: <AANLkTimmMGLKCyhiLBdDafSvkGlldwI17Xb2Y-XCx1bV@mail.gmail.com>
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.
next prev parent reply other threads:[~2010-07-07 11:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 9:56 [Xenomai-help] task management, multi-thread, multi-core Everett Wang
2010-07-07 10:21 ` Gilles Chanteperdrix
2010-07-07 10:49 ` Everett Wang
2010-07-07 11:24 ` Gilles Chanteperdrix [this message]
2010-07-07 12:44 ` Everett Wang
2010-07-07 12:51 ` Gilles Chanteperdrix
2010-07-07 14:28 ` Everett Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C3463FD.4040804@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=everteq@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.