Thank you,
I will give one scenario .
My question is
---------------
Two threads
a)WaitStateThread gets lock on the shared resoucre and by executing wait it goes to waiting state.
b) ReleaseThread, it releases the
thread(t1) the from the waiting queue,by executing the method.
now what is the role of InterruptedException ,in above program t1 ,t2 and
main thread is there,so who will generate the interruptedException.
Can you give clear explantion on that.