A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Multithreaded Embedding
You can also browse this source code online and clone the wasmtime repository to run the example locally:
This example demonstrates using Wasmtime in multithreaded runtimes.
Wasm Source
{{#include ../examples/threads.wat}}
Host Source
{{#include ../examples/threads.rs}}
{{#include ../examples/threads.c}}
{{#include ../examples/threads.cc}}