Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Multiple js contexts #8

Closed
SrinivasGourarum opened this issue Oct 24, 2015 · 2 comments
Closed

Multiple js contexts #8

SrinivasGourarum opened this issue Oct 24, 2015 · 2 comments

Comments

@SrinivasGourarum
Copy link

We have a requirement to run multiple js threads. I have created two js contexts on the same runtime. When trying to run on the second js context, there is an exception stating that the run time is active on another thread. Do I need to create a runtime for each js thread?

@liminzhu
Copy link
Member

In general JSRT runtimes are rental-threaded, meaning that at any given time, a runtime can only be active on one thread, although you're free to move runtime between threads. If you need to run two js threads concurrently, then yes, you need to create two js runtimes.

@SrinivasGourarum
Copy link
Author

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants