This is the mail archive of the ecos-discuss@sources.redhat.com 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: number of priority levels for POSIX threads


On Thu, Dec 30, 2004 at 05:00:45PM +0530, Vijay Padiyar wrote:
> Hi
> 
> This might be a silly question, but can anyone tell me how many priority
> levels exist in the eCos POSIX implementation? In other words, what is the
> legal range of values for the parameter 'sched_priority' of structure
> 'sched_param' in struct 'attr?'

There are 31 levels.

> Also, is this value fixed for POSIX threads regardless of the operating
> system?

For questions like this its best to look at the standard. This will
tell you want should be supported for a complient implementation. 

You can find that standard at http://www.opengroup.org/

After a quick bit of research you will find sched_get_priority_min()
and sched_get_priority_max() give you the information you need. 

        Andrew

-- 
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]