I have this program that has 3 processes:
P1- reads data from a file does some processing and writes data to a new file .P2reads from this file does some processing and writes data to another file.P3reads data from this file and does some processing and prints an output.
Right now these are sequential but I dont need P1 to write all the data before P2 can start reading. So id like to make all 3 processes run in parallel in java. So that as and when P1 writes a line to the file, P2 can start reading it and the same for the file that P2 writes to and P3 reads from.
Any ideas how I can implement this in java?
