never_had_a_name
never_had_a_name

Reputation: 93146

Event loop is in the same thread as Node.js main?

So Node.js uses event loop for non-blocking IO.

I wonder if that event loop is in the same thread as Node.js main for handling requests?

Upvotes: 1

Views: 316

Answers (1)

sojin
sojin

Reputation: 4694

Yes, its in the same thread. There will be only one thread for a single node.

Upvotes: 1

Related Questions