Suppose :
class cls extends
Thread {
cls (){
}
----
----
void run (){
for ( int i =0 ; i < 10 ; i ++ )
Syatem.out.println( " i = " + i ) ;
}
public static void main (
String []args )
{
cls t1 = new cls();
cls t2= new cls();
t1.start();
t2.start();
}
}
IF they are not Synchronized , what will be thw outPut ? And if they r Synchronized then ?
Thanks
ML
[This message has been edited by lashkar (edited August 13, 2001).]