This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Fwd: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]