Earlier quoted context omitted.
The server spawns the threads and isolates the entirety of a single request to a single thread. It's not true language multithreading.
JavaScript is single threaded, but all IO operations like network and disk uses threads in Node.JS, So there are still racing conditions, like when accessing the file system. But all other operations are single threaded, like storing data in memory. In for example PHP, where the server spawns the threads everything becomes multi threaded. In node.js instead of using locks etc, you use callbacks, so when something is…
No it doesn't. The only way to do truly multithreaded code in PHP is using pthreads.