When to invoke super.wait()
, something like below -
synchronized (this)
{
while (true)
{
try
{
super.wait();
}
catch (InterruptedException e)
{
return;
}
}
}