is it possible to create thread in nodeJS???

57 views
Skip to first unread message

mima yola

unread,
Feb 15, 2015, 11:52:15 AM2/15/15
to nod...@googlegroups.com
hello 
i want to create a thread with nodeJs but i didn't find any document to help me.just i find that nodeJs didn't support multiThreading 
help me please

Aria Stewart

unread,
Feb 15, 2015, 12:51:40 PM2/15/15
to nod...@googlegroups.com
Correct: Node does not reveal any threading to the Javascript execution.

There are threads under the hood to manage IO inside of libuv, because Unix non-blocking IO APIs don't fully function.

What are you trying to accomplish with threading?

Aria

mima yola

unread,
Feb 15, 2015, 12:59:43 PM2/15/15
to nod...@googlegroups.com
in my application i have a server how manage the many packet so i want to call a thread to synchronise the received packet 

Bruno Jouhier

unread,
Feb 16, 2015, 3:02:00 AM2/16/15
to nod...@googlegroups.com
You don't need threads for this. With node's async model you can handle many requests efficiently on a single thread. Requests spend most of their time doing I/O. While they are doing I/O, other requests can pop in and be serviced.
Reply all
Reply to author
Forward
0 new messages