Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread Cooper Kuo
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

Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread Cooper Kuo
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

Re: [v8-users] Is it possible to create multiple isolates in one thread?

2019-12-19 Thread 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 facilitate this. Things to keep in mind: - creating an Isolate is somewhat expensive, so creating millions of short-lived Isolates is not great

[v8-users] Is it possible to create multiple isolates in one thread?

2019-12-18 Thread Cooper Kuo
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