aspose file tools*
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
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: 19697
    
  20

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: 38910
    
  23
. . . and welcome to JavaRanch
 
Consider Paul's rocket mass heater.
 
subject: Java class to run a dedicated thread