Skip to content

Multithreading on the single JSRuntime with different JSContext? #1141

Closed Answered by bnoordhuis
laishere asked this question in Q&A
Discussion options

You must be logged in to vote

does it support executing js_call in parallel on a single JSRuntime with different JSContext?

No.

how much is the overhead difference between single-context runtime vs multi-context runtime per context?

You mean how much overhead JSRuntime adds? Not much, but that's arguably the wrong question to ask because multiple JSContexts aren't supported as a memory-saving feature but to make it possible for embedders to implement Realms.

Browser example: main page vs. iframes; different execution contexts but they're accessible to each other.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by laishere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants