la vai uma básica de threads… qual é a saida?
[code]public class Foo {
public static void main( String args[] )
{
T1 t = new T1();
t.start();
synchronized( t )
{
try {
t.wait();
System.out.println( "a" );
} catch ( InterruptedException e ) { }
}
}
}
class T1 extends Thread {
public void run()
{
synchronized( this )
{
System.out.println( "b" );
notify();
System.out.println( "c" );
}
}
}[/code]