3 ms·
Are JavaScript workers implemented using real OS threads or green threads? How heavyweight is a worker?
by cpeterso 11y ago
Are JavaScript workers implemented using real OS threads or green threads? How heavyweight is a worker?
- Klathmon 11y agoThey are real OS threads in all implementations i've seen. As for how heavy, they are definitely a bit heavier than i'd like. But rather than me try to describe it, [1] is a really good benchmark with results that you can run yourself if you want. [1]https://github.com/gmarty/web-workers-benchmark https://github.com/gmarty/web-workers-benchmark