M
M
mississippi2017-09-17 12:56:38
Node.js
mississippi, 2017-09-17 12:56:38

How to learn about blocking threads of execution in node.js?

Good day.
I want to create a module that will notify me about blocking the execution thread for a certain period of time, and would write about it to the console.
I don't even know where to start. How to determine that a blockage has occurred? So what would it look like in code? Please help with advice or literature, tell me, thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Gerasimov, 2017-09-17
@Omashu

Thread blocking will look like a long execution of some function, code section

function test() {
    while (true) {
      // calc
    }
  }

  test()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question