Gods, I just learned java multithreading has a problem
there are two ways to create a thread
the first
myTest a = new myTest(out,"ccc");
new Thread(a).start();
new Thread(a).start();
the second type
new Thread(new myTest(out,"aa")).start();
new Thread(new myTest(out,"bb")).start();
what"s the difference between these two creation threads? which one is recommended?