Thank you Jakob, now I know it is fine to use multiple isolate in one
thread. :-)
Sure, a single thread can use as many Isolates as it wants. Most V8 API
> functions take an Isolate or a Context (which implies an Isolate) parameter
> to facilitate this.
>
> Things to keep in mind:
> - creating
Thank you Jakob, now I know it is fine to use multiple isolate in one
thread. :-)
在 2019年12月19日星期四 UTC+8下午5:53:24,Jakob Kummerow写道:
>
> Sure, a single thread can use as many Isolates as it wants. Most V8 API
> functions take an Isolate or a Context (which implies an Isolate) parameter
> to
Sure, a single thread can use as many Isolates as it wants. Most V8 API
functions take an Isolate or a Context (which implies an Isolate) parameter
to facilitate this.
Things to keep in mind:
- creating an Isolate is somewhat expensive, so creating millions of
short-lived Isolates is not great
Hi, I am working out of a v8 embedder, I want to use multiple isolates at
the same time, and these isolates should run in one thread, because there
are some thrid-party framework api should be called inside main thread.
In v8 official reference