How to run multiple java files concurrently using command line?
807589Jul 29 2008 — edited Jul 29 2008Hi,
I have to write a script to run multiple java files and c files concurrently. Say, A and C are java files and B is another binary executable file, I have to make sure they are run in the order A-B-C, then I was trying to run by using
java A & ./B & java C
But it turned out that B could run before A started... Is there any way that I can ensure that A runs before B, and B runs before C by using the command line?
Thanks a lot.