I was curious Why NodeJS is single thread...?
I know the advantages and disadvantages of nodejs being single thread architecture. but why?
Let me know why nodejs is base reason of single thread!
I was curious Why NodeJS is single thread...?
I know the advantages and disadvantages of nodejs being single thread architecture. but why?
Let me know why nodejs is base reason of single thread!
Because multi-threaded architectures are more difficult to work with, and in servers - where Node.js is most often used - it's typically enough to just have a non-blocking I/O.