The one that usually gets us on embedded scripts is the garbage collector.<div>They tend to use a global one and it can cause all kinds of blocking when objects are tied to host objects like calls and waiting for them to terminate holds up things.</div>
<div><br></div><div><br><br><div class="gmail_quote">On Thu, Jul 1, 2010 at 9:47 PM, Jan Berger <span dir="ltr"><<a href="mailto:jan.berger@video24.no">jan.berger@video24.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Will find out tomorrow - I see threading in the code.<br>
<br>
It might be a case on how they do the threading. This is after all a VM even<br>
if they use native code - meaning they might do the threading in the VM. In<br>
which case you actually run it from a single thread, but you don't need to<br>
thread V8 itself - it's the scripts you run that must be threaded -<br>
something a VM can do internally.<br>
<br>
Take into account that a CISC like x86 have to move a load of register cash<br>
every time it actually thread - so simulating threading in the VM - changing<br>
context between 2 instructions would be a very performance saving thing to<br>
do.<br>
<br>
But, I will find out more exact tomorrow because I am only guessing now -<br>
and this is rather critical.<br>
<br>
V8 compiles to a 128 mb library :/ on Windows ...<br>
<font color="#888888"><br>
Jan<br>
</font><div class="im"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-dev-bounces@lists.freeswitch.org">freeswitch-dev-bounces@lists.freeswitch.org</a><br>
</div><div class="im">[mailto:<a href="mailto:freeswitch-dev-bounces@lists.freeswitch.org">freeswitch-dev-bounces@lists.freeswitch.org</a>] On Behalf Of Bret<br>
McDanel<br>
Sent: 2. juli 2010 03:51<br>
To: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-dev] TraceMonkey<br>
<br>
</div><div><div></div><div class="h5">I thought V8 was designed to be multi-threaded from inception. Maybe I<br>
am confusing my projects. I wonder if it was the embedding part of it<br>
that did not enable proper threading ??? Then again it could be like<br>
python, where when embedded all threads are virtual to the 1 process<br>
that is running (ie not threads as far as the kernel is concerned) which<br>
can confuse the kernel scheduler into sticking it in the penalty box for<br>
a while. Normally you are not doing enough in the embedded language to<br>
notice this scheduler issue so its almost a moot point. Other points<br>
may be valid though.<br>
<br>
<br>
On Fri, 2010-07-02 at 03:06 +0200, Jan Berger wrote:<br>
> What exactly is the problem with threading?<br>
<br>
<br>
<br>
<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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <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>