Re:A Taste of JavaScript's New Parallel Primitives
by cpeterso on Thursday May 05, 2016 @04:03PM
(#11639265)
Are JavaScript workers implemented using real OS threads or green threads? How heavyweight is a worker?
[ Parent
| on HN ]
Re:A Taste of JavaScript's New Parallel Primitives
by Klathmon on Thursday May 05, 2016 @05:12PM
(#11639693)
They 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.