try to change ur code with this..
i m not sure about it but may be ur problem is solve.. just try it..
code:
String t1s;
t1s = Thread.currentThread().getName().toString();
if (t1s.equals(Thread.currentThread().getName().toString()))
{
System.out.println("YES EQUALS");
}
else
{
System.out.println("t1s: "+t1s);
System.out.println("thread:"+Thread.currentThread().getName().toString());
}
[ April 08, 2006: Message edited by: saif uddin ]