TIP: As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications.
TIP: As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications.
@ -29,6 +29,7 @@ In Node.js, there is no such start-the-event-loop call.
- *Node.js exits the event loop* when there are *no more callbacks to perform.*
- *Node.js exits the event loop* when there are *no more callbacks to perform.*
====
====
== threads
Node.js being *designed without threads* doesn't mean you can't take advantage of multiple cores in your environment.
Node.js being *designed without threads* doesn't mean you can't take advantage of multiple cores in your environment.
@ -37,7 +38,7 @@ Child processes can be spawned by using our *child_process.fork() API,* and are
TIP: Built upon that same interface is the cluster module, which *allows you to share sockets between processes* to enable load balancing over your cores.
TIP: Built upon that same interface is the cluster module, which *allows you to share sockets between processes* to enable load balancing over your cores.