Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

724 B
Raw Blame

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}}