On May 17, 2015, at 6:53 PM, essam.mi...@gmail.com wrote:
> 
> NodeJS uses a event driven model in which only one thread executes the 
> events. I understand the first event executed will be the user JS code. After 
> that event loop will wait for further messages. My question is which thread 
> enqueue event? Is there are a separate thread that does that? If yes can 
> multiple threads enqueue events also?
> 

NodeJS does not expose underlying threads to the application, which has to 
(therefore) execute in single-threaded mode. I hope that addresses your 
question (but I am not sure).

        —ravi



-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/D0A33139-414B-4079-99B6-9082727EB8F3%40g8o.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to