-
-
Save anonymous/5fd075f29d6f45f0a814b551b32781ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void twoDL() //current | |
{ | |
ProcessBuilder DL = new ProcessBuilder("//commands").inheritIO(); | |
Process downloading1 = DL.start(); | |
downloading1.waitFor(); | |
ProcessBuilder DL = new ProcessBuilder("//other commands").inheritIO(); | |
Process downloading2 = DL.start(); | |
downloading2.waitFor(); | |
} | |
public void twoDL2() //is this faster? | |
{ | |
ProcessBuilder DL = new ProcessBuilder("//commands").inheritIO(); | |
Process downloading1 = DL.start(); | |
DL = new ProcessBuilder("other //commands").inheritIO(); | |
Process downloading2 = DL.start(); | |
downloading1.waitFor(); | |
downloading2.waitFor(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment