The Artima Developer Community
Sponsored Link

Java Answers Forum
threads related question

1 reply on 1 page. Most recent reply: Jan 18, 2005 5:51 AM by lalama fodie toure

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Yogesh

Posts: 19
Nickname: kyogesh
Registered: Sep, 2004

threads related question Posted: Jan 17, 2005 9:51 PM
Reply to this message Reply
Advertisement
I have read that once a java thread is dead, it cannot be restarted. But its state and behaviour can be accessed like other objects. why java threads cannot be restarted ? why can't they work as thread again ?


lalama fodie toure

Posts: 11
Nickname: lalama11
Registered: Nov, 2004

Re: threads related question Posted: Jan 18, 2005 5:51 AM
Reply to this message Reply
sun java thought about it too so they come up with
java.util.TimerTask
a package that allows you schedule thread

the Thread.sleep(int howlong);
method may help too

be sure to take a look at the documentation
best regard

Flat View: This topic has 1 reply on 1 page
Topic: The trim() Previous Topic   Next Topic Topic: Immutable Class

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use