This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Can somebody show me more Thread.* examples? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Can somebody show me more Thread.* examples?" Watch "Can somebody show me more Thread.* examples?" New topic
Author

Can somebody show me more Thread.* examples?

Klaas Vredevort
Greenhorn

Joined: Dec 27, 2005
Posts: 29
Hey!

I got a wonderful, though very crude, method to make Strings sleep in Java.
Mark Weber showed me the Thread.sleep() method. I love it! Can sombody please show me more examples of this? Or where can I find info on it?

Thanks!

Klaas
Peter Petrov
Greenhorn

Joined: Feb 03, 2006
Posts: 17
Well, Strings do not sleep

And judging by your excitement from the Thread.sleep()
method I suggest you start from here:
http://java.sun.com/docs/books/tutorial/essential/threads/

Regards.
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
if you are amused by Thread.sleep(), wait till you come across consumer-producer power of threads with wait(), notify(), notifyall() methods. I always enjoyed multi-threading despite being can be complex at times.
having said that, thanks to the java.util.concurrent package in JDK 1.5 for simplified and more efficient multi-threading.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can somebody show me more Thread.* examples?
 
Similar Threads
java.io package examples
NullPointerException, Server and Client
FilenameFilter help plz
RMI - Client Application
to read lines inside brackets