+ 3
Is javascript multithreaded or single threaded?
2 odpowiedzi
+ 2
JavaScript is known to be single-threaded
0
JavaScript is single threaded, however certain runtimes (like node) can be multithreaded using
require('child_process').fork()
or via the cluster module.
Though, in the web it is single threaded. Despite asynchronous functions making it "feel" multi threaded.