+ 3
Is javascript multithreaded or single threaded?
2 Answers
+ 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.