---
title: "Discussion on \"What is Threading in Nodejs\" | Hashnode"
description: "Discussion on \"What is Threading in Nodejs\". In Node.js, threading refers to the ability to execute multiple pieces of JavaScript code concurrently, rather than sequentially. By default, Node.js is single-threaded, meaning that it can only execute one piece of code at a time. This can be a limi..."
url: "https://hashnode.com/posts/what-is-threading-in-nodejs/63a1f1a3cb96b5a911101fa3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is Threading in Nodejs](https://techiegist.hashnode.dev/what-is-threading-in-nodejs?utm_source=hashnode&utm_medium=feed)

In Node.js, threading refers to the ability to execute multiple pieces of JavaScript code concurrently, rather than sequentially. By default, Node.js is single-threaded, meaning that it can only execute one piece of code at a time. This can be a limi...

Dec 20, 2022 · 2 min read · techiegist.hashnode.dev  
Updated Jan 22, 2023  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Etiene James](https://hashnode.com/@St80ene)

@St80ene · Lagos, Nigeria

  
[View profile](https://hashnode.com/@St80ene)

A Developer keen at sharing knowledge and helps in building amazing stuffs.

I am a Software Engineer, Tech Writer based in Lagos, Nigeria. I am passionate about solving problems, sharing knowledge gained during my Tech journey, and excited in meeting people.

## Responses 1

Markdown supported · ⌘↵ to post

[José Pablo Ramírez Vargas](https://hashnode.com/@webJose)

[Dec 25, 2022](https://hashnode.com/posts/what-is-threading-in-nodejs/63a1f1a3cb96b5a911101fa3/comment/63a800e6b1011ed9ec6d01a7)

Async/Await is **not** a threading option. It merely is a programming method that allows the **only** JS thread to jump around between operations, making better use of the CPU time.

This is a life-long misconception beginners have, so we must not spread it around in articles. You should remove this part.

Furthermore, literally **every** async/await tutorial/article out there only shows how to release the thread, but they never show you how to _really_ program asynchronously.

Feel free to read [this article](https://webjose.hashnode.dev/i-bet-youve-been-doing-asyncawait-wrong).

[Etiene James](https://hashnode.com/@St80ene)

[Jan 22, 2023](https://hashnode.com/posts/what-is-threading-in-nodejs/63a1f1a3cb96b5a911101fa3/comment/63a800e6b1011ed9ec6d01a7#reply-63cd6abac94895c1eb7ebbd5)

Thank you for this

[Etiene James](https://hashnode.com/@St80ene)

[Jan 22, 2023](https://hashnode.com/posts/what-is-threading-in-nodejs/63a1f1a3cb96b5a911101fa3/comment/63a800e6b1011ed9ec6d01a7#reply-63cd6abacc7a92b9f77dd382)

Thank you for this
