emscripten-core / emscripten-core/emscripten
pthread workers 100% CPU usage...
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Hello,
Today I profiled my wasm engine (pthreads version) and found that all 4 threads (workers) of the job system take 100% CPU usage.
I used chrome profiler. Normally it shows nothing in workers (white bars) if thread is suspended. But in my case it shows usage in... emscripten_futex_wait. Isn't it suppose to suspend thread (sleep) in this function? Why it shows hundreds of millisecond CPU usage in waiting for conditional variable?

Contributor guide
Assessment
This issue has not been assessed yet.