Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.12 Spawning

As we now know, Node (like the browser) runs in a single thread. This means that, if we are running some code that is very processor intensive, then it can delay and slow down other executing code. Sometimes, it can be necessary to spawn additional processes to do some intensive work for us. For this lesson, we are going to spawn processes to collect Twitter data for some different topics.