This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: number of priority levels for POSIX threads
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Vijay Padiyar <vijaypadiyar at hotmail dot com>
- Cc: eCos Support <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 30 Dec 2004 13:38:15 +0100
- Subject: Re: [ECOS] number of priority levels for POSIX threads
- References: <BAY17-DAV54360D4742B15DE433681D49C0@phx.gbl>
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