Thanks Sven Panne for the information. My requirement is that my application has two threads, worker thread (Thread A) and main thread (Thread B).
While the main thread at the start precompiles the scripts and runs it. The worker thread , dynamically recieves the updated javascript and compiles it. This compiled updated script is later run by the main thread. If i use isolate and locker for the above, it works fine but isolate and locker adds to the execution time to run the script.Mine is a low latency system so was trying to achieve the above without using isolate and locker. So i want my worker thread(Thread A) to precompile javascript (updated javascript recieved by the application at run time). I want to run this precompiled javascript in my main thread. Currently what i do store the compiled script, persistent context handle in which the script is compiled in the worker thread(A). In my main thread i access the compiled script , enter the persistent context stored and run the script. For this i use locker and isolate. Since the time of execution along with isolate and locker is more, i am looking for a work around for this. Any help would be appreciated. Thanks. On Monday, March 11, 2013 3:57:16 PM UTC+5:30, Sven Panne wrote: > > Re-reading your original mail, I am not 100% sure what you are trying to > achieve by using separate Isolates and threads: Sharing *anything* > JavaScript-ish between different Isolates is by definition impossible > (hence the name ;-). An Isolate is a complete separate instance of the VM, > and of course you can have several of them in a s single process, Chrome > uses this for e.g. web workers. If you are using multiple threads, at any > point in time there can only be a single thread executing a given an > Isolate, this is what v8::Locker is for. The other way round, several > threads can use a single Isolate, but only one after the other guarded by a > Locker. > -- -- 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.
