On Fri, Jan 31, 2014 at 11:38 AM, Sara Abdelhameed <
saraabdelhameed1...@gmail.com> 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?
>

Yes that is correct.


>
> 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 <saraabdel...@gmail.com
>> > 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
>>> v8-u...@googlegroups.com
>>>
>>> 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 v8-users+u...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to