About 67 results
Open links in new tab
  1. multithreading - JavaScript and Threads - Stack Overflow

    Aug 27, 2008 · Another possible method is using an javascript interpreter in the javascript environment. By creating multiple interpreters and controlling their execution from the main thread, you can …

  2. javascript - Does JS support multi-threading now? - Stack Overflow

    Jan 3, 2023 · No, A JavaScript context is single-threaded and will be single-threaded for the foreseeable future. There may be many threads within the process, as is the case with Node.js and its many IO …

  3. JavaScript multithreading - Stack Overflow

    Dec 2, 2021 · I'm working on comparison for several different methods of implementing (real or fake) multithreading in JavaScript. As far as I know only webworkers and Google Gears WorkerPool can …

  4. How does multi-threading or async code in JavaScript work?

    Mar 26, 2016 · Worker is an object created using a constructor (e.g. Worker ()) that runs a named JavaScript file — this file contains the code that will run in the worker thread; workers run in another …

  5. Why doesn't JavaScript support multithreading? - Stack Overflow

    Aug 1, 2018 · 234 JavaScript does not support multi-threading because the JavaScript interpreter in the browser is a single thread (AFAIK). Even Google Chrome will not let a single web page’s JavaScript …

  6. Threading the web with module workers | Articles | web.dev

    Dec 17, 2019 · Module workers make it easy to unblock the main thread by moving expensive code to a background thread while keeping the ergonomic and performance benefits of standard JavaScript …

  7. What's the equivalent of Java's Thread.sleep() in JavaScript?

    Apr 4, 2017 · What's the equivalent of Java's Thread.sleep () in JavaScript? [duplicate] Asked 16 years, 4 months ago Modified 7 years, 6 months ago Viewed 301k times

  8. An overview of web workers - web.dev

    Nov 1, 2023 · In the worker's JavaScript file— my-web-worker.js in this case—you can then write code that then runs in a separate worker thread. Web worker limitations Unlike JavaScript that runs on the …

  9. Use web workers to run JavaScript off the browser's main thread ...

    Dec 5, 2019 · The browser's main thread is incredibly overworked. By using web workers to shift code off the main thread, you can significantly improve your app's reliability and user experience.

  10. How is Javascript single threaded? - Stack Overflow

    Mar 18, 2019 · There is no possibility that JavaScript would execute something there, even if a timer's time has come, precisely because JS is single-threaded. JS thread can either be in-code or out-of …