Java Thread related question
<pre><code>Class Ui{
    synchronized update()
    {
           do something
    }

    synchronized stop()
    {
          do something
    }
}
</code></pre>

<p>Multiple threads are accessing the methods of the above class..</p>

<pre><code>    RunnableUI rm1 = new RunnableUI();
    RunnableUI rm2 = new RunnableUI();


    Thread rmt1 = new Thread(rm1);
    Thread rmt2 = new Thread(rm2);


    rmt1.start();
    rmt2.start();
</code></pre>

<p>and Runnable UI Class is </p>

<pre><code>class RunnableUI implements Runnable
{

    public void run()
    {
        Ui u1 = new Ui();

        u1.update(20);

        u1.stop();
    }
}
</code></pre>

<p>what i want to do is after stop method is called by first thread the second thread that would be waiting should start executing..</p>

<p>How do i do this..</p>

<p>Regards,
Kaddy</p>
