File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 19651
    
  18

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: 37958
    
  22
. . . 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
Regd Thread
Unable to launch the application
how to read file attach to mail
MVC test case