TAGG: Threads à gogo for Node.js does exactly that: 
<http://github.com/xk/node-threads-a-gogo>


On 31/01/2014, at 20:38, Sara Abdelhameed wrote:

> so, if I want to make very simple example such as having two threads that 
> each one run different script and don't depend on each other, and I want them 
> to be in parallel, so I must use two isolate, for every thread there is one 
> isolate and no need to use lock as the scripts are different and independent 
> from each other. is this right? 
> 
> On Friday, January 31, 2014 11:23:28 AM UTC+2, Jochen Eisinger wrote:
> There are two options: (1) use different isolates on each thread (then the 
> scripts can run in parallel) and (2) use one isolate and use v8::Locker to 
> lock the isolate before you use it (then only one thread at a time can 
> execute scripts)
> 
> best
> -jochen
> 
> 
> On Fri, Jan 31, 2014 at 9:51 AM, Sara Abdelhameed <[email protected]> 
> wrote:
> Hello all, 
> does v8 engine support multithreaded application ? and could I run two 
> different javascript code in two different threads at the same time ? 
> 
> -- 
> -- 
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> -- 
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to