From: Jesper Skov <jskov@redhat.com>
To: Jonathan Larmour <jlarmour@redhat.com>
Cc: Jesper Skov <jskov@redhat.com>,
Paleologos Spanos <paleolog@ee.ucla.edu>,
ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Unique priorities
Date: Thu, 11 Jan 2001 09:31:00 -0000 [thread overview]
Message-ID: <14941.60868.749671.374067@thinktwice.zoftcorp.dk> (raw)
In-Reply-To: <3A5DE5C4.33B37AA0@redhat.com>
>>>>> "Jonathan" == Jonathan Larmour <jlarmour@redhat.com> writes:
Jonathan> Jesper Skov wrote:
>> >>>>> "Paleologos" == Paleologos Spanos <paleolog@ee.ucla.edu>
>> writes:
Paleologos> mlqueues default scheduler). I would expect that I would
Paleologos> have an error or something like that because of the fact
Paleologos> that the 2 threads are having the same priority (4).Is it
Paleologos> correct or I have misunderstood something?
>> The bitmap scheduler will assign a thread the closest possible
>> priority to that requested. It does not fail if the requested
>> priority is already used, it just returns another. So your threads
>> would probably have priorities 4 and 5.
Jonathan> Jesper are you sure about that? From bitmap.cxx
Cyg_SchedThread_Implementation::Cyg_SchedThread_Implementation
(
CYG_ADDRWORD sched_info
)
{
CYG_REPORT_FUNCTION();
#if 1
// Assign this thread's priority to the supplied sched_info
// or the next highest priority available.
priority = cyg_priority(sched_info);
while( !Cyg_Scheduler::scheduler.unique(priority) )
priority++;
#else
// Assign initial priorities to threads in descending order of
// creation.
static cyg_priority init_priority = 0;
priority = init_priority++;
#endif
}
Yup :) It haunted the stress_threads test for a while as it didn't
get the priorities it had asked for.
But it's not good that those two are not consistent. File a bug?
Jesper
next prev parent reply other threads:[~2001-01-11 9:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-10 16:25 Paleologos Spanos
2001-01-10 23:53 ` Jesper Skov
2001-01-11 8:56 ` Jonathan Larmour
2001-01-11 9:15 ` Nick Garnett
2001-01-11 9:31 ` Dan Conti
2001-01-11 9:31 ` Jesper Skov [this message]
2001-01-11 9:35 ` Jonathan Larmour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14941.60868.749671.374067@thinktwice.zoftcorp.dk \
--to=jskov@redhat.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=jlarmour@redhat.com \
--cc=paleolog@ee.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).