The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

to throw an event

Posted by venky on May 29, 2001 at 3:17 AM

Hi Toshiko,

Pls see Timer class and Timer Task interface in JDK1.3.
These are new class introduced in JDK1.3.

You can register your timertask to timer class and after the delay you wanted the timer task is invoked periodically and you can implement the logic in the run() method of the Timer Interface.

Hope this helps

venky

> Hi !

> Is there are certain kind of method in the Thread
> class or else which make each thread throw a
> signal (throw an event for example) in certain time.

> What I want to do is make my threads throw
> a signal every 5 seconds.

> Any advises are appreciated.
> Thank you.
> Toshiko






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us