I am doing something similar for a CCXML/VXML engine and spinning ca 20,000
sessions on my laptop. I can't do more because I run out of RAM. But, I
should be able to do 100,000 parrallell sessions on a different computer
later - no prob.

V8 multithread like any other system, but it's a few tricks to it -
basically you need to activate preemitive scheduler and use a locker.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Mike
Sent: 27. juli 2010 16:52
To: v8-users
Subject: [v8-users] V8 Multi-Threaded

I've been hearing some rumblings about V8 finally getting support for
threading.
Specifically "Isolates"...

I have a few questions I'm hoping someone can answer.

1) How heavy/light is each instance of V8, assuming each thread would
get a difference instance.  I want to know what it would look like if
I spun up 1000+ instances.

2) We could like compile server side scripts once and run them over
and over.  Do I need to compile a new copy for each instance?

2) We are looking at using V8 for a web server where there can be a
"session" started on the server. The session has a special "session
global" which can be shared by each request having the same session id
(via cookie).
How well does V8 support a global for use in multiple threads, each
with its own context?  It is assumed that serialized access to the
global may be needed depending on the V8 implementation. The "session
global" holds standard classes which must be preserved between server
hits for the same session id.

Thanks!

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to