Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question