> Interesting! What i know is we just can run context one by one in an isolate per thread. For example
Yes, it's pretty exciting. We have already implemented such a mechanism for Lua and it works perfectly with the minimum overhead , so we want to apply it to JavaScript. As to the vm module, I'm wondering whether the contexts will be switched back and forth if I call `vm.runInNewContext` multiple times, where I write some async code(the timeout argument should only restrict the on-cpu time, including promise callbacks, I guess). > Maybe you can read the source code of `node_contextify.cc` and `vm.js` in Node.js. Hope it will be helpful to you. I haven't used the vm module before so those are my guess. But anyway, I'll read the code for details. Thanks! -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/7c03b9f6-244a-422f-ae03-a774e4f0f375n%40googlegroups.com.