I have this piece of code:
public static void main(String[] args) {
Downoader down = new Downoader();
Downoader down2 = new Downoader();
down.downloadFromConstructedUrl("http:xxxxx", new File("./references/word.txt"), new File("./references/words.txt"));
down2.downloadFromConstructedUrl("http:xxxx", new File("./references/word1.txt"), new File("./references/words1.txt"));
System.exit(0);
}
Is it possible to run these two methods: down.downloadFromConstructedUrl()
and down2.downloadFromConstructedUrl()
simultaneously? If so, how?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…