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

Java class to run a dedicated thread

harshpat patel

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

Joined: Oct 27, 2005
Posts: 19651

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.

How To Ask Questions How To Answer Questions
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37958
. . . and welcome to JavaRanch
I agree. Here's the link:
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