Meaningless Drivel is fun!
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 Building Microservices this week in the Design 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: 20080
    
  30

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 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44033
    
  33
. . . and welcome to JavaRanch
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Java class to run a dedicated thread
 
It's not a secret anymore!