Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] Could someone please run this program in Windows?

On Thu, Sep 12, 2002 at 05:05:09PM -0400, Marco Qualizza wrote:
> 
> Out of curiousity, why do you put your call to wait() in a synchronized block?
> 
...
>             try {
>                 synchronized (object) {
>                     object.wait(100L);
>                 }
>             }
>             catch (InterruptedException e) {
>                 ; // Oh well, at least we tried to wait...
>             }

I added the synchronized as suggested by Jonathan Gossage. As I recall, my 
first cut didn't have it, and it didn't work.

dave
-- 
Dave Shields, IBM Research, shields@xxxxxxxxxxxxxx. 


Back to the top