R
Ravi
Can you please tell why the following code snippet gives me error
IllegalThreadStateException
n1 = new Thread(......//
n2 = new Thread(......//
...
//
n1.start();
n2.start();
n1.join();
n2.join();
n1.start();
n2.start();
....
IllegalThreadStateException
n1 = new Thread(......//
n2 = new Thread(......//
...
//
n1.start();
n2.start();
n1.join();
n2.join();
n1.start();
n2.start();
....