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 14:51:50 +0200 [thread overview]
Message-ID: <4C347866.30106@domain.hid> (raw)
In-Reply-To: <AANLkTikjCCD9WlqVMl-of4fx4ldZ8bmk-DGzLkqr5FXO@mail.gmail.com>
Everett Wang wrote:
> On Wed, Jul 7, 2010 at 7:24 PM, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
>> 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
>
> That is why I thought to cut the lower priority but more CPU comsuming
> task into smaller pieces and only let it run for one piece at a time
> then wait so
> higher priority task don't have to wait. Once the higher priority task has
> done its thing, then send a trigger to the let the lower priority task to run
> one more chunk. Is this the right thing to do or I am totally off the track?
You are off the track. As I said, the scheduler is preemptive.
--
Gilles.
next prev parent reply other threads:[~2010-07-07 12:51 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
2010-07-07 12:44 ` Everett Wang
2010-07-07 12:51 ` Gilles Chanteperdrix [this message]
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=4C347866.30106@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.