Answered Questions

  • Inter Thread Communication

    What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?

    Star Read Best Answer

    Editorial / Best Answer

    maneesh.ce.2007  

    • Member Since Nov-2008 | Dec 15th, 2008


    There are three ways in which Threads communicate with each other :

    wait: It tells the calling thread to give up the monitor until some other thread enters the same monitor an calls Notify or Notifyall...

    notify: It wakes up the first thread that called Wait() on the same object...

    NotifyAll: It allows all the threads that called Wait() on the same object.The thread having the highest priority will run first...

    chakry

    • Nov 5th, 2011

    Why we use 'wait()' inside a synchronized method

    kutiarul

    • Nov 21st, 2009

    Three methods are used. They are1. wait() - makes one thread wait for some time till another thread is being executed2. notify() - makes one wait process into ready state process3. notifyall() - makes all the waiting processes into ready state processes

  • What is Struts

    Answered by asreeni on 2005-04-08 03:24:40: The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.   Struts...