Saturday 22 April 2017

How node.js single thread model process concurrent request?

Two concurrent request R1 and R2 comes to node.js server. Node.js is running with single thread T1. T1 takes 5 seconds to process the request R1. Assume this time spent in some actual processing of big function and there is no waiting/IO call .

My question is - will request R2 will be taken up by after 5 seconds(once R1 completes) or both(R1 and R2) will be run in round robin fashion ?



via user3198603

No comments:

Post a Comment