[asterisk-dev] How can I set the number of threads? limiting number of threads?

Russell Bryant russell at digium.com
Thu Oct 21 15:02:38 CDT 2010


On Thu, 2010-10-21 at 15:42 -0400, Min Lee wrote:
> Hi,
> Asterisk is highly multithreaded application, and I want to set the number 
> of threads it's spawning. I couldn't find it in configuration file.
> I'd like to limit the number of threads, or make it single-threaded.
> How can I limit the number of threads?
> Should I build it from source code?

You can not limit it.  You can not set to be a single thread.

You can limit the number of calls that are being processed, which as a
side effect, will limit the number of threads.

-- 
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org





More information about the asterisk-dev mailing list