Revision: 2986
http://jnode.svn.sourceforge.net/jnode/?rev=2986&view=rev
Author: lsantha
Date: 2007-01-04 12:24:57 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
Reduced worker count from 8 to 2.
Modified Paths:
--------------
trunk/core/src/core/org/jnode/work/WorkPlugin.java
Modified: trunk/core/src/core/org/jnode/work/WorkPlugin.java
===================================================================
--- trunk/core/src/core/org/jnode/work/WorkPlugin.java 2007-01-04 20:24:19 UTC (rev 2985)
+++ trunk/core/src/core/org/jnode/work/WorkPlugin.java 2007-01-04 20:24:57 UTC (rev 2986)
@@ -51,6 +51,9 @@
/** Queue processor threads */
private final List<QueueProcessorThread<Work>> threads;
+ /** Number of workers started initially. */
+ private final int workerCount = 2; //8
+
/** Counter used for worker thread names */
private int counter = 1;
@@ -62,7 +65,7 @@
/** Number of work items ended */
private int workEndCounter;
-
+
/**
* @param descriptor
*/
@@ -75,8 +78,7 @@
* @see org.jnode.plugin.Plugin#startPlugin()
*/
protected final void startPlugin() throws PluginException {
- final int n = 8;
- for (int i = 0; i < n; i++) {
+ for (int i = 0; i < workerCount; i++) {
addWorker();
}
try {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|