Quiz

  1. So if there's only one thread in Node.js, does that mean it can literally only do one thing at a time? How does it handle multiple users then?

    Correct: it can literally only do one thing at a time.

    As for handling multiple users, it depends on the I/O demands. If each user only wants computation, then Nodejs can only handle them one at a time. But if they break intermittently for I/O, Nodejs can process another user while waiting for the I/O to complete.

  2. When you would choose Node.js vs. a threaded server?

    When the demands are I/O bound: dominated by waiting for I/O.

  3. I am still confused with callback instead of returning values; can you go over the code snippets again?

    For sure. That's a very difficult part of the whole thing.

  4. A bit confused on Node.js as a whole, but I think covering it again in class will help!

    I hope so!