Mozilla JavaScript Engine JSRuntime Now Single-threaded
Categories: News, Rumors and Gossip
From the Read Carefully dept.:
...A single SpiderMonkey runtime (that is, instance of JSRuntime) ??? and all the objects, strings and contexts associated with it ??? may only be accessed by a single thread at any given time. However, a SpiderMonkey embedding may create multiple runtimes in the same process (each of which may be accessed by a different thread).
That means it is up to the embedding to provide communication (if any) between the runtimes via JSNative or other SpiderMonkey hooks. One working example is the new implementation of web workers in Firefox which uses a runtime per worker. Niko Matsakis is experimenting with a different architecture in his new parallel JS project.
...A single SpiderMonkey runtime (that is, instance of JSRuntime) ??? and all the objects, strings and contexts associated with it ??? may only be accessed by a single thread at any given time. However, a SpiderMonkey embedding may create multiple runtimes in the same process (each of which may be accessed by a different thread).
That means it is up to the embedding to provide communication (if any) between the runtimes via JSNative or other SpiderMonkey hooks. One working example is the new implementation of web workers in Firefox which uses a runtime per worker. Niko Matsakis is experimenting with a different architecture in his new parallel JS project.
Read More In: News, Rumors and Gossip
Featured Article
How to Configure Windows Network Browsing in Tomato on NETGEAR WNR3500L
With Windows, browsing computers in the network can take a long time with serious delays before getting the computer lists. This especially happens in environments where there is not a server available which most of us have in our home scenarios. If not aware of it the TomatoUSB firmware can... More »

RSS

