How to achieve this child process functionality in NodeJS ? Or do I need to try something else?

  child-process, javascript, node.js

I’m looking to complete a functionality where the program should read data from multiple files and write into one single file and use two child processes for reading and writing the data respectively. Condition is that once the second process completes writing, it should send a signal to the first process to read the second file so that the two processes must communicate. Process1 should not start reading the file until it gets the response from process2.

Source: Ask Javascript Questions

LEAVE A COMMENT