Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,313

    Re: Help wanted using wait() and notify()

    The testing code needs to start two threads.
    The first will wait for the variable to be set.
    The second will set the variable and notify those waiting.
  2. Replies
    7
    Views
    1,313

    Re: Help wanted using wait() and notify()

    How do you test the code you have written? Can you post some code here that will call the methods for testing?
  3. Replies
    7
    Views
    1,313

    Re: Help wanted using wait() and notify()

    Do you have code to test with? A class that has a main() method.
  4. Replies
    7
    Views
    1,313

    Re: Help wanted using wait() and notify()

    To test the code for the task, you'll need two threads: one to wait and one to do the notify after world is set true.

    The wait and the notify methods must use the same object when called.

    How...
Results 1 to 4 of 4