node.js - Can a single-core CPU use cluster to open multiple threads?
天蓬老师
天蓬老师 2017-06-27 09:19:14
0
3
1046

In order to reduce the chance of downtime. I plan to use node's cluster module to enable multi-threading. One master thread is responsible for scheduling, and multiple worker threads are responsible for processing business.

Now the server's CPU only has a single-core CPU, which should be able to have multiple worker threads, right?

My thinking: A single-core CPU can have multiple parallel processes. Each process can start a node instance to achieve the above effect.

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
刘奇

No, one core and one cluster

曾经蜡笔没有小新

cpu to worker1:1

某草草

cluster does multi-process, one core and one process

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template