What kind of schedulingrule to use? [message #318976] |
Thu, 09 August 2007 11:07 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.27244 seconds