How To Get Asterisk Acting Like A Multi-thread Application?

Home » Asterisk Users » How To Get Asterisk Acting Like A Multi-thread Application?
Asterisk Users 5 Comments

Hello All, By default, Astersik uses only one thread as processing jobs, Now I need to know how can it will be possible to configuring asterisk as a Multi-thread application?
Do you thinks thread usage is dependent upon the O.S(Operating System) and development tools
(compiler flags and libraries) used to build Asterisk or not?

Any idea will be welcome. Thanks in advanced.

5 thoughts on - How To Get Asterisk Acting Like A Multi-thread Application?

  • Asterisk is already multi-threaded.

    Asterisk generally uses one thread per channel with quite a few other helper threads.

  • On my system there are no active channels[1]. I have:

    # pidof asterisk
    14386

    # ls /proc/14386/task
    14386 14391 14395 14399 14404 14409 14413 14417 14421 14425 14429
    14388 14392 14396 14400 14406 14410 14414 14418 14422 14426 14430
    14389 14393 14397 14402 14407 14411 14415 14419 14423 14427 14431
    14390 14394 14398 14403 14408 14412 14416 14420 14424 14428 14432

    And of coursse: asterisk -rx ‘core show threads’

    [1] but it’s still good enough to get Wesnoth hung:
    http://bugs.debian.org/734124