This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Fwd: CPU affinity in eCos
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "eCos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Sat, 24 Oct 2009 02:03:27 -0700
- Subject: RE: [ECOS] Fwd: [ECOS] CPU affinity in eCos
> From: Archana Sastry
>
> I wanted to implement something like this:
>
> 1. Maintain separate queues for each priority level. Put every
> incoming thread into its respective queue.
> 2. Dequeue threads from a queue and schedule it to run on its
> respective cpu = priority number.
>
> In my system, I have 2 CPU's. So I wanted to know, if this is a
> feasible approach?
It kind of drains the word "priority" of all meaning, if a low priority
thread is chosen over a higher priority thread merely because of the CPU its
bound to. It sounds like a hackish way to use the priority number to encode
something entirely different.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss