once the thread is up its asleep anyway, it would be possible to make it go away but its not really hurting anything and if the same situation is likely to continue to happen its more efficient to be ready for it the subsequent times the load occurs.<div>
<br></div><div><br><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 6:54 AM, john <span dir="ltr"><<a href="mailto:john.gubba@rediffmail.com">john.gubba@rediffmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Friends,<div><br></div><div>I was going through the code of event mechanism in freeswitch. In switch_event.c</div><div>The switch event thread may spawn more dispatch threads in case heavy load.</div><div>But I am wandering why there isn't any exit mechanism of the event dispatch thread.</div>
<div><br></div><div>event dispatch thread only exits when shutdown.</div><div><br></div><div>Current event dispatch queue size is 10,000. At some point of time event thread detects 12,000 events to be dispatched. It spawns a new dispatch thread - 2, to deliver remaining 2000 events. but after that dispatch thread -2 remains active & idle.</div>
<div><br></div><div>I think we need to kill this idle thread+queue, so that it can be re spawned latter on. and max no of dispatch threads never get exceed.</div><div><br></div><div>Please reply me if anyone has implemented this or have any idea abt this.</div>
<div><br></div><div>thnx</div><div><br></div><br><a href="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><img></a><br><table width="578" border="0" cellspacing="0" cellpadding="0">
<tbody><tr><td><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#393939">Follow <span style="color:#0000cc"><b><u><a href="http://track.rediff.com/click?url=___http://dealhojaye.rediff.com?sc_cid=rediffmailsignature___&cmp=signature&lnk=rediffmailsignature&newservice=deals" target="_blank">Rediff Deal ho jaye!</a></u></b></span> to get exciting offers in your city everyday.</span></td>
</tr></tbody></table><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>