This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java.util.TimerTask


>>>>> "Erik" == Erik Poupaert <erik.poupaert@chello.be> writes:

Erik> Even though I wouldn't be able to tell why, I see that "we need
Erik> to use a mutex in order to prevent MonitorStateExceptions".

Read the docs for Object.wait.  You're required to hold the mutex for
an object before calling wait on it.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]