[ECOS] number of priority levels for POSIX threads

Andrew Lunn andrew@lunn.ch
Thu Dec 30 12:38:00 GMT 2004


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



More information about the Ecos-discuss mailing list