node concurrency

206 阅读1分钟

child process

  • process message event: If the Node.js process is spawned with an IPC channel, the message event is emitted whenever a message sent by a parent process using childprocess.send() is received by the child process.parant -> child -> trigger
  • child process message event: The 'message' event is triggered when a child process uses process.send() to send messages.child -> parent -> trigger