Stream: wasi

Topic: Green threads in WASI


view this post on Zulip Mossaka (Joe) (Jul 13 2022 at 17:48):

Is it possible for WASI to have green threads/fiber? They are use-space lightweight threads that are scheduled by the language runtime, instead of preemptively scheduled by the kernel. Goroutines, Earlang, and Java Loom are all examples of it.

I know there is a proposal to add native threads to WASI, so I am curious to find out if we can take the next step to have green threads in WASI. Would this be a reasonable proposal?

Contribute to WebAssembly/wasi-native-threads development by creating an account on GitHub.

view this post on Zulip Jamey Sharp (Jul 13 2022 at 18:05):

I'm still trying to figure out how to read WebAssembly proposals, but I think the work you want to look at is in the core wasm "stack switching" proposal, and the best place I can find to start is https://github.com/WebAssembly/stack-switching/blob/main/proposals/tasks/Explainer.md

A repository for the stack switching proposal. Contribute to WebAssembly/stack-switching development by creating an account on GitHub.

Last updated: Nov 22 2024 at 17:03 UTC