The javascript that node runs is single threaded, but a lot of the things you call in node – such as network or file io – run in background threads. See this post for a basic overview: Node is not single threaded
If you need the gritty details, you should look into libuv which is the ‘magic’ piece converting threads into event loops: http://nikhilm.github.io/uvbook/basics.html#event-loops
Additionally, if you need to do something CPU intensive in node itself, you can easily send this to a child process – see http://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options for details
Related Posts:
- What is process.env.PORT in Node.js?
- What is index.js used for in node.js projects?
- How can I update npm itself?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- TCP vs UDP – What is a TCP connection? [duplicate]
- ssh : Permission denied (publickey,gssapi-with-mic)
- what does O(N) mean [duplicate]
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- How do I make a delay in Java?
- did you specify the right host or port? error on Kubernetes
- How does Java’s PriorityQueue differ from a min-heap?
- What is a Memory Heap?
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Advanced AREL or just Rails Query for has_many through search by association
- How to remove origin from git repository
- XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
- How to set NODE_ENV to production/development in OS X
- Transport endpoint is not connected
- env: node: No such file or directory in mac
- How to convert .crt to .pem [duplicate]
- pagebreak in markdown while creating pdf
- Error: unable to verify the first certificate in nodejs
- How can I wait In Node.js (JavaScript)? l need to pause for a period of time
- How to change to an older version of Node.js
- How do I correctly clean up a Python object?
- How do I split a string on a delimiter in Bash?
- Why am I getting “Error socket hang up” response?
- Why does Wi-Fi have so much more bandwidth than Bluetooth?
- ReferenceError : window is not defined at object.
Node.js - What does the ELIFECYCLE Node.js error mean?
- Node.js Port 3000 already in use but it actually isn’t?
- How to Create and Use Enum in Mongoose
- AJAX response error: net::ERR_EMPTY_RESPONSE
- spring @sqlgroup with multiple datasource
- What is Procfile? and Web and Worker
- TypeError: app.use() requires middleware functions
- First Heroku deploy failed `error code=H10`
- What is the definition of a “disparity map”?
- Cannot find module ‘internal/util/types’
- “docker build” requires exactly 1 argument(s)
- declaring a priority_queue in c++ with a custom comparator
- Node.js: Difference between req.query[] and req.params
- Android java.lang.IllegalStateException: Could not execute method of the activity
- SwiftUI – How do I change the background color of a View?
- How to resolve the error java.net.SocketException: Too many open files
- Npm install cannot find module ‘semver’
- How to download a file with Node.js (without using third-party libraries)?
- Using map in Haskell
- How do I remove documents using Node.js Mongoose?
- ‘gulp’ is not recognized as an internal or external command
- No gulpfile found
- How is req.isAuthenticated() in Passport JS implemented?
- Downgrade npm to an older version
- How do I fix the npm UNMET PEER DEPENDENCY warning?
- Mongoose.js: remove collection or DB
- slideToggle JQuery right to left
- Valgrind Invalid free() / delete / delete[] / realloc() in C
- Identity matrix in Julia
- Letsencrypt renewal fails: Could not bind to IPv4 or IPv6.. Skipping
- Devise lockable – How to unlock account using unlock_in
- How to bind multiple values to a single WPF TextBlock?
- npm “failed to parse json”
- reversing list in Lisp
- npm install with error: `gyp` failed with exit code: 1
- How to disable Windows Update Medic Service?
- Systrace for Windows
- Good way to encapsulate Integer.parseInt()
- TCP/IP packets and datagrams
- ArrayList of int array in java
- Empty functions in Javascript
- Solr: how to delete a collection?
- How to print a int64_t type in C
- How to store data in the flash memory of a Arduino Uno (ATmega328p)
- What is a blob URL and why it is used?
- how to add inside a text box?
- How to apply a patch?
- TwentyTwentyTwo – How to add PHP logic to Post templates?
- How can I trash multiple posts at once from the front end?
- Maintenance holding page while migrating website
- Multiple og:image for Facebook
- How to get a current post’s blog id
- Will has_category be true is used on index and one of queried posts has the category?
- How to get a value from wp_dropdown_user?
- Exclude categories with only sticky posts OR count sticky post of specific category
- How do you install Node.JS on CentOS?
- All servers flooded by salt water, is it possible to recover data from multi-platter drives?
- How to check if I’m in screen session?
- How to zip/unzip files in Powershell?
- Cooling Server Closet – No A/C Is Possible
- Is it better practice to buy RAID disks individually vs. in bulk?
- What range of MAC addresses can I safely use for my virtual machines?
- What sysadmin things should every programmer know?
- Why do systems generally disable virtualization by default in BIOS settings?
- 10 servers to administer and I’m a history major [closed]
- Making `wget` not save the page
- How do I list all connected Salt Stack minions?
- How to get Apache2 to redirect to a subdirectory
- What does that mean: packages excluded due to repository priority protections
- How can I set a short timeout with the ping command?