F
F
floppa3222019-11-16 13:46:06
Node.js
floppa322, 2019-11-16 13:46:06

How does NodeJS work?

1. Do I understand correctly that NodeJS asynchrony is achieved by descriptor polling (epoll) for I/O operations?
If the answer to the first question is yes, then:
2. Worker threads are mainly needed only for CPU intensive operations, since even one thread would be enough for epoll ? Even the node developers themselves say: "Workers (threads) are useful for performing CPU-intensive JavaScript operations. They will not help much with I/O-intensive work. ". ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question