0

enter image description here

As we can see in the above diagram Event demultiplexer collecting requests that are require io work. Event demultiplexer sened these requests to system hardware to process io requests asynchronously in non blocking way. Once io work complete Event demultiplexer adding these events to eventqueue along with callbacks assosiated with each event.

Now my doubts are Does event demultiplexer gathers only io related requests or it gathers non io related requests too ?

Does nodejs register event and callbacks for cpu intensive tasks?

When a request comes to nodejs, to where it will go first, to event queue or to event demultiplexer?

Somebody please help me by clarifying my doubts.

Progman
  • 16,827
  • 6
  • 33
  • 48

0 Answers0