Jakob,

Thanks for your input.... you've confirmed what I already expected about 
isolates.

It appears to be impossible for different threads to use different isolates 
at the same time, and it appears to be impossible for different isolates to 
share data in any way without writing an inteface to convert between v8 
objects and C++, which if I am wanting the v8 objects to be able to hold 
any kind of v8 data would amount to what is essentially reimplementing a 
handle<value> class of my own, from scratch, since I would need it to hold 
any type of data that can be held in a javacript variable, including 
objects and arrays of values. And worse, in constantly converting back and 
forth between v8 values and such native values just so the different 
threads could share data (they need to share data so that it can be 
aggregated into an array for later) I expect I would lose most, if not all 
of the benefits that I am hoping to get out of multithreading in the first 
place.

What I am  therefore wondering is if there is any kind of notion of a 
thread within v8 itelf, where I could essentially make what amounts to a 
multithreaded javascript program that makes callbacks via native functions 
to C++ code, and multithread my task that way.

Thanks again,
Mark

-- 
-- 
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/d/optout.

Reply via email to