The letter S in a light blue, stylized speech bubble followed by SpeakBits
SpeakBitsThe letter S in a light blue, stylized speech bubble followed by SpeakBits
Trending
Top
New
Controversial
Search
Groups

Enjoying SpeakBits?

Support the development of it by donating to Patreon or Ko-Fi.
About
Rules
Terms
Privacy
EULA
Cookies
Blog
Have feedback? We'd love to hear it!

Understanding Processes and Threads in Node.js

differ.blog
submitted
a year ago
byjustadevtoprogramming

Summary

The number 7754 is a process ID that the operating system assigned to it. On a single core machine, the processes execute concurrently. The reason behind this behaviour is that the OS has scheduling algorithms that decide when to run each process. This happens back and forth until all the tasks have been finished.

In Node.js, each process has its own thread. This means that each process is able to run in a single thread. It is possible to run multiple processes in the same process. This is known as a ‘multi-core’ process. It means that the process can run in multiple threads.

 Windsor tie candle taper wax light picket fence paling iron smoothing iron-0
12

2 Comments

2
throwschen
a year ago
Simple but I think effective at explaining the differences. Wish this went into creating the threads.
2
justadevOP
a year ago
I'll keep an eye out to see if I can find one!