Dear Manfred Klug ,
Thanks for the reply.
Now i have just modified your programme and added a sleep method in the
MyRunnable class. Now when the myThread goes to sleep the main
thread interrupts it and at that time myThread throws an interupted exception
but at that time Thread.interrupted() method does not return it to true.
why???
[ June 21, 2007: Message edited by: Barry Gaunt ]