wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java class to  run a dedicated thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java class to  run a dedicated thread" Watch "Java class to  run a dedicated thread" New topic
Author

Java class to run a dedicated thread

harshpat patel
Greenhorn

Joined: Mar 16, 2009
Posts: 1
Is there any class in java which can allows you to run an operation on a separate, dedicated thread.

Similar to one in C# System.ComponentModel.BackgroundWorker
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

Let's see...
- java.lang.Thread
- java.util.Timer
- java.util.concurrent.Executor and its subclasses
- javax.swing.Timer (only in Swing / AWT programs)
- javax.swing.SwingWorker (only in Swing / AWT programs)

I probably missed a few but with these you should be able to get on by.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
. . . and welcome to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java class to run a dedicated thread
 
Similar Threads
Mini Web Server: where the results appear in this case
MVC test case
Regd Thread
Unable to launch the application
how to read file attach to mail