Although the question has already been explained until a long time, I put my thoughts on the same thing.
Node JS is a single-threaded technology. Essentially, the problem with the creator of JS (Ryan Dahl) was that parallel processing using multiple threads is not the right way or too complicated.
if node.js doesn't use threads, how does it handle concurrent requests in parallel
Ans: This is a completely wrong sentence when you say that it does not use threads, Node Js uses threads, but intellectually. It uses a single thread to serve all HTTP requests and multiple threads in a thread pool (in libuv) to handle any blocking operation
Libuv: A library for handling asynchronous I / O.
What does the event I / O model mean?
Ans: The correct member is non-blocking I / O. It is almost never blocked, as the official Node JS website says. When any request is sent to the Node server, it never queues the request. It accepts the request and starts execution, if it blocks the operation, then goes to the workflow area and registers a callback for the same one, as soon as the code execution completes, it calls the same callback and goes into the event queue and is processed by the event loop again after who create a response and send to the appropriate client.
Useful link: click here
Alok Deshwal Aug 17 '17 at 13:22 2017-08-17 13:22
source share