Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:23:24+00:00 2026-06-13T18:23:24+00:00

Nodejs is said to use only one process to handle requests and then those

  • 0

Nodejs is said to use only one process to handle requests and then those function using I/O will do asynchronously, which will improve the efficiency of web server. However, those process to handle I/O doesn’t count? Compared with traditional web server, like Apache, which use multithread to handle requests where every request in one thread, Is the cost(request + I/O) reduced?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:23:26+00:00Added an answer on June 13, 2026 at 6:23 pm

    Yes, node.js only needs one thread (which is an even more restrictive than requiring one process, depending on operating system). And yes, this does impact on your programming requirements:

    — your programs must never block!

    There are quite a few resources you can refer to, as to why node.js is so fast, e.g.:

    http://www.manning.com/cantelon/NjsiA_meap_ch01.pdf

    http://nodejs.org/about/

    node.js saves on the threading penalty imposed by context switching, that other servers require (see Slebetman). We built our own such server in 2004 in C++, because of high performance requirements, when your server has to open and close a lot of connections, this approach really saves a lot of resources.

    I think what you are missing in your question is that node.js hands off operations that take a long time to the O/S and is called back with the answer. The O/S is fully multi-process. So node.js only NEEDS one thread for its control, but I/O is controlled by O/S processes.

    node.js can however spawn additional processes, in which you can run parallel programs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a nodejs application that will be sending html e-mail using emailjs
I'm currently building a webserver in nodeJS that'll be using mongoDB. One of the
I have a nodeJS server running. There are some requests that the server will
I am using mongoose/nodejs to get data as json from mongodb. For using mongoose
I'm using Nodejs and Socket.io. When the client connects, new JavaScript objects are created.
I have created a nodejs application which works fine in a single core. This
I have very recently started development on a multiplayer browser game that will use
I have made a firefox extension which loads a web page using xmlhttprequest .
I am new to nodejs. I want to use jsdom to parse some web
NodeJS is a fantastic tool and blazing fast. I'm wondering if HTTPClient supports cookies

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.