Re: posix scheduler
- From: PAD <pierre-alain@xxxxxxxxxxx>
- Date: Thu, 13 Aug 2009 14:55:42 -0700 (PDT)
On Aug 13, 11:38 am, aaadam <apps...@xxxxx> wrote:
Hi,
I'm confused about scheduling pthreads in RTP when using posix scheduler.
How does it works? Can every pthread have different scheduler?
Not a different scheduler, but a different scheduling policy
(SCHED_FIFO, SCHED_RR, etc.).
What is "Concurrent scheduling"?
This is referring to the fact that user-side pthreads can each have a
different scheduling policy.
[...]
but in next page:
"VxWorks does not support the POSIX thread-concurrency feature, as all
threads are scheduled. The POSIX thread-concurrency APIs are provided
for application portability, but they have no effect."
This paragraph is specifically referring to the pthread_setconcurrency
() and pthread_getconcurrency() API. These API are a mean for the
application to tell the scheduler how many threads the application
desires to be simultaneously active in a process. The scheduler may
ignore the hint. This feature applies only to systems where the
scheduler schedules only the processes; then the pthread
implementation has to manage the threads that should run within the
scheduling slot assigned to the process. VxWorks is not in this
category.
Hope this clarifies things,
--
PAD
.
- Follow-Ups:
- Re: posix scheduler
- From: aaadam
- Re: posix scheduler
- References:
- posix scheduler
- From: aaadam
- posix scheduler
- Prev by Date: posix scheduler
- Next by Date: "lower_type: bad kind" error
- Previous by thread: posix scheduler
- Next by thread: Re: posix scheduler
- Index(es):
Relevant Pages
|
Loading