I have to process whole bunch of JS scripts using C++ wrapper around V8 and I need to do it in parallel.
For example, I have two scripts A and B. I've compiled these scripts using C++ V8 functions and want to run it in parallel or at least in async way, so that script B does not wait when script A will be finished.
Now I am thinking to use threads, but in this case I have to use mutex, and that means the code will run consequentially (not what I want at all).
Maybe there is some ability to run js code asynchronously from C++ using V8.. Anyway, is there is any way I could run several scripts and they will work in parallel ?