8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 19:23:02 +01:00

Partially removed DeadThreadsCollection parameter from firebird.conf.

Concerning complete removal of it I wait for response on my letter to devel list.
This commit is contained in:
alexpeshkoff 2004-09-01 16:11:12 +00:00
parent 04ab0c3629
commit a808403767
4 changed files with 0 additions and 33 deletions

View File

@ -447,25 +447,6 @@
#
#PrioritySwitchDelay = 100
#
# Number of cycles of the scheduler (PrioritySwitchDelay ms) before
# thread are destroyed/closed. Rather than immediately destroy/closed
# worker threads (which would require a semaphore and blocking call --
# significant overhead), the thread scheduler maintains a pool of the
# threads. When a thread has completed it's task/work, it is marked as
# idle. The idle thread is destroyed/closed after X iterations of the
# scheduler loop.
#
# For a server with a very large number of connections (presumably more
# than several hundred) the setting value should be increased.
#
# The setting represents the number of loop iterations to be made before
# the thread is destroyed/closed.
#
# Type: integer
#
#DeadThreadsCollection = 50
#
# Number of additional 'intervals' given to a 'High' priority thread.
#

View File

@ -373,14 +373,6 @@ int Config::getPrioritySwitchDelay()
return rc;
}
int Config::getDeadThreadsCollection()
{
int rc = (int) sysConfig.values[KEY_DEAD_THREADS_COLLECTION];
if (rc < 1)
rc = 1;
return rc;
}
int Config::getPriorityBoost()
{
int rc = (int) sysConfig.values[KEY_PRIORITY_BOOST];

View File

@ -229,11 +229,6 @@ public:
*/
static int getPrioritySwitchDelay();
/*
Dead threads collection
*/
static int getDeadThreadsCollection();
/*
Priority boost
*/

View File

@ -37,7 +37,6 @@
// configurable parameters
#define THPS_TIME (Config::getPrioritySwitchDelay()) // ms between rescheds
//#define THPS_TICKS (Config::getDeadThreadsCollection()) // sched loops before thread killing
#include <stdio.h>
#include <errno.h>