Mercurial
diff mrjunejune/src/blog/multithread-in-js/index.md @ 169:295ac2e5ec00
[MrJuneJune] Created separate target for generating html from md.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 17:33:18 -0800 |
| parents | 65e5a5b89a4e |
| children |
line wrap: on
line diff
--- a/mrjunejune/src/blog/multithread-in-js/index.md Mon Jan 19 16:29:02 2026 -0800 +++ b/mrjunejune/src/blog/multithread-in-js/index.md Mon Jan 19 17:33:18 2026 -0800 @@ -1,3 +1,8 @@ +--- +title: Multithreading in JavaScript +description: Exploring how JavaScript evolved from single-threaded to supporting Worker Threads, with a practical example calculating prime numbers. +--- + # Multithreading in JavaScript I recently discussed various programming languages and their advantages with my new coworkers at Meta. During our conversation, we debated the topic of multithreading in JavaScript. My stance was that multithreading became possible in Node.js after certain versions, while my coworker believed it wasn't feasible due to JavaScript's original design. This led me to delve deeper into the topic and provide some code examples.