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?
- Using prevNext Modx Addon
- :wq! command in vim
- how to set the background color of the status bar during the launching phase [duplicate]
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- When is K 1024 and when is it 1000?
- What is a MIME type?
- Logitech/LGHUB Lua – Loop with break
- are there dictionaries in javascript like python?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- Understanding The Modulus Operator %
- Understanding the main method of python [duplicate]
- Dial pad to get phone number (with Android button images)
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How is the AND/OR operator represented as in Regular Expressions?
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to make a discord bot create an invite for every server it joins?
- Istio Ingress resulting in “no healthy upstream”
- Why is it not possible to fake an IP address?
- How to open a “-” dashed filename using terminal?
- Substring in excel
- What is a LAMP stack?
- What is a sanity test/check
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- How to find Google’s IP address?
- What exactly is a VBO in OpenGL?
- What and where are the stack and heap?
- ping response “Request timed out.” vs “Destination Host unreachable”
- Authentication versus Authorization
- What is a reverse shell?
- How does npm start work? What all processes are happening in the background?
- What is an instance variable in Java?
- What is the := operator?
- What is tail recursion?
- Discord music bot not working
- What does “:=” mean in Pseudocode? [closed]
- Why am I getting error for apple-touch-icon-precomposed.png
- No results found on kibana -> discover
- What is Xpenology? Is it Linux related thing?
- map function for objects (instead of arrays)
- Why do we need virtual functions in C++?
- I can´t install nodemon globally, “nodemon” not recognized
- What is a CSRF token? What is its importance and how does it work?
- How can I update NodeJS and NPM to the next versions?
- How can I update npm itself?
- How do I update Node.js?
- Create blank image in Imagemagick
- How to install a previous exact version of a NPM package?
- Official definition of CSCI (Computer Software Configuration Item)
- How could I ping @here in Discord.py?
- How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- What does %>% mean in R [duplicate]
- How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’
- super() in Java
- Visual List of iOS Fonts?
- How to solve npm error “npm ERR! code ELIFECYCLE”
- Start script missing error when running npm start
- How to solve npm error “npm ERR! code ELIFECYCLE”
- What is useState() in React?
- TCP vs UDP – What is a TCP connection? [duplicate]
- How do I copy folder with files to another folder in Unix/Linux? [closed]
- npm check and update package if needed
- What is the file node.exe for?
- ssh : Permission denied (publickey,gssapi-with-mic)
- Eclipse IDE for Java – Full Dark Theme
- Node.js version on the command line? (not the REPL)
- Amazon Linux: apt-get: command not found
- Can not find module “@angular-devkit/build-angular”
- Node.exe Stuck at 100% CPU
- Google Calendar API event insert always return 404 “not found” error
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- After command npm start “Missing script:start” error
- What’s the syntax for mod in java
- what does O(N) mean [duplicate]
- What does the Java assert keyword do, and when should it be used?
- How to get rid of the “No bootable medium found!” error in Virtual Box? [closed]
- How do I fix a “Expected Primary-expression before ‘)’ token” error?
- Using getline() with file input in C++
- STDERR? What is it? What are its common uses?
- UML Sequence diagram auto-numbering in Visual Paradigm
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- sudo: npm: command not found
- How do I make a delay in Java?
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general? [closed]
- Casting variables in Java
- Discord API error when trying to send one command at discord using JavaScript client
- Handling file renames in Git
- How to you store data for each discord user in the discord server?
- Upgrading Node.js to latest version
- PermissionError: [Errno 13] in Python
- Why are there two ways to unstage a file in Git?
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- bash: npm: command not found?
- ‘git’ is not recognized as an internal or external command
- Babel 6 regeneratorRuntime is not defined
- did you specify the right host or port? error on Kubernetes