Announcement

Collapse
No announcement yet.

Why is JavaScript treated as Single threaded

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why is JavaScript treated as Single threaded

    Why is JavaScript treated as Single threaded

  • #2


    JavaScript is a single-threaded language. Because the language specification does not allow the programmer to write code so that the interpreter can run parts of it in parallel in multiple threads or processes. Whereas languages like java, go, C++ can make multi-threaded and multi-process programs.

    Comment


    • #3
      Javascript Engine is single threaded. Basically interpreter is single threaded. But JS engine host like browser can support multiple threads. There are online resources to understand this. Here is a link from W3 Spot. This article is a good one.

      Comment

      Related Topics

      Collapse

      Working...
      X