Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    4,940

    Re: Help with Bounded Buffer problem

    A Thread ends when the code using it returns from the run() method.

    Your testing model doesn't show anything. Several changes I'd recommend:
    Change the sleep time to 100 ms or less. 2 seconds is...
  2. Replies
    6
    Views
    4,940

    Re: Help with Bounded Buffer problem

    Try debugging the code by adding printlns that print out the values of variables as they are changed and used. If you know what the code is supposed to do, seeing what it is doing should help you...
Results 1 to 2 of 2