Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-process and per-thread clocks #65

Open
Vampeyer opened this issue May 20, 2024 · 1 comment
Open

Per-process and per-thread clocks #65

Vampeyer opened this issue May 20, 2024 · 1 comment

Comments

@Vampeyer
Copy link

Vampeyer commented May 20, 2024

Hello there , Hey I was just wondering ,

Is it still possible for a feature , of one or the other , to build further API's on
for Per-process - OR - per-thread clocks ?

  • I just like using nice timing functions for stuff , and I was curious , Thank you !
@sunfishcode
Copy link
Member

Per-process is complicated by the fact that WASI doesn't have a concept of a process, and even if we said that a Wasm instance is a "process", many host implementations run multiple Wasm instances in a single host process, so it's not straightforward to use the host process timer to implement a WASI "instance" timer.

Per-thread is complicated by the fact that when WASI supports threads, some implementations are expected to not have a 1-1 correspondence between WASI threads and host threads, so it's again not straightforward to use the host thread timer to implement a WASI thread timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants