Re: More thread scheduling observations
Re: More thread scheduling observations
- Subject: Re: More thread scheduling observations
- From: Bill Stewart <email@hidden>
- Date: Sun, 05 May 2002 14:32:18 -0700
One misconception to clear up.
There is NO such thing as a low priority RT thread. There is one and only
one priority for a thread with time constraints and that is 96.
If you do a:
>
ps -axM
From the terminal (with the optional -p <PID>) you'll see that you're rt
thread is given a priority of 96.
Creating 96 threads is in most cases a bad idea to do these kinds of
activities, when in many cases a fixed-priority thread will be more than
sufficient
More to come...
Bill
(Previous emails have stated comments about P=64 - bare in mind that that
won't succeed - you will get a priority of 63 - that is the highest user
level priority that can be obtained)
on 5/5/02 10:20 AM, Andy Bull wrote:
>
On Sunday, May 5, 2002, at 05:39 pm, Ian Ollmann wrote:
>
>
> So to make a long story short, do not simply elevate your thread to
>
> timeshare off and PRI=64. Turn timeshare off then see how low priority
>
> you
>
> can go before the interruptions start again.
>
>
This is really good advice thank you.
>
>
I've been messing with this today and I've found that a priority as low
>
as 5 seems to be enough for even an extreme case
>
of very small feeder buffers, short feeder sleep times, with itunes
>
playing, Finder copying a couple of large files, and me dragging and
>
resizing project builder's windows. amazing my feeder didn't seem to
>
drop a frame. So it seems that even a low priority rt thread is pretty
>
much guaranteed to get it's time at the moment. It'll be interesting to
>
see how it goes when several music apps are playing together.
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Thousands of years ago, cats were worshipped as gods. We have never
forgotten this."
__________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.