wasm-micro-runtime/samples/wasi-threads
2023-08-31 20:23:54 +08:00
..
wasm-apps Implement strict validation of thread IDs according to the specification (#2521) 2023-08-31 20:23:54 +08:00
CMakeLists.txt Use wasi-sdk 20 pre-release for tests with threads (#2021) 2023-03-17 20:02:03 +08:00
README.md Update wasi-libc version in CI and implement custom sync primitives (#2028) 2023-03-26 09:03:26 +08:00

"WASI threads" sample introduction

To run the sample, wasi-sdk >= 20 is required.

Build and run the samples

$ mkdir build
$ cd build
$ cmake ..
$ make
...
$ ./iwasm wasm-apps/no_pthread.wasm

Run samples in AOT mode

$ ../../../wamr-compiler/build/wamrc \
    --enable-multi-thread \
    -o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
$ ./iwasm wasm-apps/no_pthread.aot