in Mean Stack by
Is Node.Js wholly based on a single thread?

1 Answer

0 votes
by

Yes, Node.js can be wholly based on a single thread. However, you should be well aware of the fact that it is just a theory behind the design of Node.Js. Apart from being involved in the process of a single thread mechanism, it also makes use of callbacks and events to cater to a large number of demands. It is also vital for you to note that Node.Js possesses an optimized design. This streamlined design allows it to use both C++ and JavaScript resulting in maximum performance. The JavaScript gets executed at the side of the server. On the other hand, the C++ library ensures the processing of non-sequential I/O with the help of background workers.

...