-
I read in the documentation for the thread model of the wasm-c-api that a Question: Is this the general thread model for embedding WAMR ? Background: I have a multi-threaded application and want to initialize the runtime once in the process
And then load and run modules from different threads
Are the functions to load and instantiate the modules thread-safe? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is a pretty simple thread model for embedding hosts. It requires a host to create and maintain a thread pool and create an instance for every worker in the pool. Only need to load .wasm once. If tends to follow the "wasm-c-api" model, it is better to only use APIs in wasm-c-api.h |
Beta Was this translation helpful? Give feedback.
It is a pretty simple thread model for embedding hosts. It requires a host to create and maintain a thread pool and create an instance for every worker in the pool. Only need to load .wasm once.
If tends to follow the "wasm-c-api" model, it is better to only use APIs in wasm-c-api.h