Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » What kind of schedulingrule to use?
What kind of schedulingrule to use? [message #318976] Thu, 09 August 2007 11:07
Eclipse UserFriend
Originally posted by: kvdijken.tiscali.nl

I wonder if I can use schedulingrules for this scenario:

class A extends Job{}
class B extends Job{}

1. Both A and B can have several instances.

2. Instances of A may be run simultaneously.

3. Instances of B must be serialized (like
org.eclipse.core.internal.registry.osgi.ExtensionEventDispat cherJob.EXTENSION_EVENT_RULE accomplishes)

4. Instances of B may not be scheduled when instances of A are still running (but I do not want to
let running instances of B prevent instances of A being started).


Both 3 and 4 are for performance reasons, instances of A must be run as fast as possible, may not be
slowed down by running instances of B. If that would be possible, I would even like to temporarily
stop instances of B when instances of A are ready to be run. I already give B a lower priority than
A, but as I understand, this only influences WHEN instances of B are being run, not how much cpu
cycles they get.


Any ideas?

Koen
Previous Topic:Get active workbench part in Command IHandler
Next Topic:Can CompareEditorInput be used with logical model content
Goto Forum:
  


Current Time: Sun Jul 27 16:11:25 EDT 2025

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

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

Back to the top