c++ - Can Google V8 engine run different Javascripts in different contexts in different threads simultaneously? -


I plan to embed Google V8 in my C ++ application, which is a multi-threading process Need to run many javascript together? Can I create multiple V8 contexts and run different javascript in different contexts in different threads? Not every context needs to be communicated with others I just do not want any lock or wait for the script to be concurrently executed. Thanks!

Yes, unless the references are from isolates of different isolates

each isolated only You can enter one thread at a time and you need to use v8 :: Locker to isolate a specific thread.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -