1# Multithreaded Embedding 2 3You can also browse this source code online and clone the wasmtime 4repository to run the example locally: 5 6* [Rust](https://github.com/bytecodealliance/wasmtime/blob/main/examples/threads.rs) 7* [C](https://github.com/bytecodealliance/wasmtime/blob/main/examples/threads.c) 8* [C++](https://github.com/bytecodealliance/wasmtime/blob/main/examples/threads.cc) 9 10This example demonstrates using Wasmtime in multithreaded runtimes. 11 12## Wasm Source 13 14```wat 15{{#include ../examples/threads.wat}} 16``` 17 18## Host Source 19 20<!-- langtabs-start --> 21 22```rust 23{{#include ../examples/threads.rs}} 24``` 25 26```c 27{{#include ../examples/threads.c}} 28``` 29 30```cpp 31{{#include ../examples/threads.cc}} 32``` 33 34<!-- langtabs-end --> 35