Search:

Type: Posts; User: fgstat

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,145

    Re: Simple multithreading using wait and notify

    Ideally it's doing it consistently like you said. But it does this most of the time in my Eclipse run environment:

    Count from Thread 1: 1
    Count from Thread 1: 2
    Count from Thread 1: 3
    Count...
  2. Replies
    3
    Views
    1,145

    Simple multithreading using wait and notify

    Can anyone read the following code and see why I can't let 3 threads count to 60? Order in which they execute (increment to 20) is not important but most of the times I only see two of them do. The...
Results 1 to 2 of 2