--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
So when many tabs use same v8, Does all of them push the javascript code on the main thread or can their be multi-threaded execution for each of these single-threaded tabs?
> When several tabs share a renderer, they also share that renderer's V8 instance,
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
I think this is the situation of different tabs sharing the same v8.
--
I am making an application with v8 as a library. I created 2 threads with each of them having different isolates. And it was "able" to run javascript in both the threads. Was that just by chance or it is possible ? When different threads ask for executing code to v8 parallely, would they get into a line automatically ? Is there a chance of them getting lost ?
On 23 September 2013 12:57, Ashish Negi <thisismy...@gmail.com> wrote:
I am making an application with v8 as a library. I created 2 threads with each of them having different isolates. And it was "able" to run javascript in both the threads. Was that just by chance or it is possible ? When different threads ask for executing code to v8 parallely, would they get into a line automatically ? Is there a chance of them getting lost ?Someone correct me if I'm wrong, but my understanding is:You can run different isolates on different threads at the same time with V8, yes. However, there is only one Blink thread per renderer process in Chromium, and because V8 shares the DOM with Blink, V8 must run on the single Blink thread.So, if you're just embedding V8 in your app standalone, then what you're doing is fine, but Chromium can't do that because our V8 shares state with the non-multithreaded rendering engine; even though they are separate isolates only one can run at a time.
On Mon, Sep 23, 2013 at 5:17 AM, Torne (Richard Coles) <to...@chromium.org> wrote:
On 23 September 2013 12:57, Ashish Negi <thisismy...@gmail.com> wrote:
I am making an application with v8 as a library. I created 2 threads with each of them having different isolates. And it was "able" to run javascript in both the threads. Was that just by chance or it is possible ? When different threads ask for executing code to v8 parallely, would they get into a line automatically ? Is there a chance of them getting lost ?Someone correct me if I'm wrong, but my understanding is:You can run different isolates on different threads at the same time with V8, yes. However, there is only one Blink thread per renderer process in Chromium, and because V8 shares the DOM with Blink, V8 must run on the single Blink thread.So, if you're just embedding V8 in your app standalone, then what you're doing is fine, but Chromium can't do that because our V8 shares state with the non-multithreaded rendering engine; even though they are separate isolates only one can run at a time.Workers[1] are an example of multiple threads running JavaScript via V8 within a single Chromium process, with the threads and V8-fu managed by Blink.
[1] technically, "Dedicated Workers". Shared Workers get their own "headless" renderer process AND a Worker thread.
On Monday, 23 September 2013 17:21:06 UTC+5:30, PhistucK wrote:As far as I have experienced, all of them execute on the same main thread.☆PhistucKOn Mon, Sep 23, 2013 at 2:45 PM, Ashish Negi <thisismy...@gmail.com> wrote:So when many tabs use same v8, Does all of them push the javascript code on the main thread or can their be multi-threaded execution for each of these single-threaded tabs?
> When several tabs share a renderer, they also share that renderer's V8 instance,--
--
Chromium Developers mailing list: chromi...@chromium.orgTo unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
On 23 September 2013 17:32, Joshua Bell <jsb...@chromium.org> wrote:
On Mon, Sep 23, 2013 at 5:17 AM, Torne (Richard Coles) <to...@chromium.org> wrote:
On 23 September 2013 12:57, Ashish Negi <thisismy...@gmail.com> wrote:
I am making an application with v8 as a library. I created 2 threads with each of them having different isolates. And it was "able" to run javascript in both the threads. Was that just by chance or it is possible ? When different threads ask for executing code to v8 parallely, would they get into a line automatically ? Is there a chance of them getting lost ?Someone correct me if I'm wrong, but my understanding is:You can run different isolates on different threads at the same time with V8, yes. However, there is only one Blink thread per renderer process in Chromium, and because V8 shares the DOM with Blink, V8 must run on the single Blink thread.So, if you're just embedding V8 in your app standalone, then what you're doing is fine, but Chromium can't do that because our V8 shares state with the non-multithreaded rendering engine; even though they are separate isolates only one can run at a time.Workers[1] are an example of multiple threads running JavaScript via V8 within a single Chromium process, with the threads and V8-fu managed by Blink.Right, but the "normal" non-worker JS running on web pages in different tabs that share a renderer process are all running on the same Blink main thread, no?