Hi,

On 7/18/07, Kenichi Aramaki <[EMAIL PROTECTED]> wrote:
> These are several tasks that has highest priority on Windows;
> -MpMediaTask is set to THREAD_PRIORITY_HIGHEST
>  (it is not very clear that this thread has highest priority)
> -dma tasks are set to THREAD_PRIORITY_TIME_CRITICAL
> Are they really necessary?

Yes, without high priority you'll get audio glitches. We process
auido id fairly small pieces (10ms) and this processing should
be done smooth, without any long delays.

> It seems waste of CPU time, especially when call is not made.
> I think highest priority has to be given when it is needed.
> e.g. give appropriate priorities on call state, or add I/F to change
>  media thread priorities on demand, etc.

Priority itself is not a problem. If high priority task is sleeping it does
not produce load. And if low priority task is working it may cause
100% CPU load (threads with higher priorities will not notice that,
though). So, what you really may want is to reduce number of
processing, done when idle. What youi should do is to run profiler
and see what does really consume time, and then somehow
avoid this.

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to