When http request hit into the Nodejs application the connect first received by Nodejs main thread (which is js main thread) and passed to event loop, if my understand is correct
The event loop is what allows Nodejs to perform non-blocking I/O operations, JavaScript is single-threaded — by offloading operations to the system kernel whenever possible.
The above statement is from Nodejs official documentation, so my question where does the main thread lives?
out side the event loop or inside the event loop
is both different? Can someone give good pictures how Nodejs work internally, with graphical representation?