i am learning java. in multithreading i want to put a thread to wait() and then call back it by notify() .. but i am not able to do so. can any one explain it to me by simple example..
Hi
I gives you a brief idea for writing Multi Threading Program.
1. Declare a class as extending the thread class.
Ex. class classname extends Thread
{
}
java.lang.thread is a superclass for the multiple thraeding.
2. overriding the the run method
Ex public void run()
{
}
3. create the object of main class and call start method to.
Ex. new P().start();