Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to obtain a progress monitor w/o a Job?(Questions on the Jobs framework)
How to obtain a progress monitor w/o a Job? [message #782079] Mon, 23 January 2012 05:18
Marcel Bruch is currently offline Marcel BruchFriend
Messages: 289
Registered: July 2009
Senior Member

Hi,

I've a plug-in that extensively makes use of thread pools to execute operations. The thread pool is used to ensure a few things:

1. Threads should run on a minimal priority and should not disturb the IDE experience. Best, they compute things only if a CPU is idle.

2. At most, a MAX number of operations should be executed at the same time.

3. Some operations should report back to the Eclipse progress bars and views.

Obviously, the Jobs API seems to be a good fit for 3. But how can I ensure 1 and 2?
Is job.setPriority(DECORATE) similar to Thread.MIN_PRIORITY?
Can/should ISchedulingRules be used to limit the number of active jobs of the same kind?

There are potentially hundreds of Jobs that would get scheduled at the same time. If the Jobs API is not the right solution to this, is there a (standard) way to obtain a IProgressMonitor to use in your own threads (outside the Jobs framework)?

Thanks for advice.
Previous Topic:Saving file when tab is changed!
Next Topic:Export Deployable Features - Java Web Start Tab
Goto Forum:
  


Current Time: Thu Mar 28 12:46:07 GMT 2024

Powered by FUDForum. Page generated in 0.03895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top