Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironmentConfig..::.ThreadCount Property
DatabaseEnvironmentConfig Class See Also Send Feedback

An approximate number of threads in the database environment.

Namespace: BerkeleyDB
Assembly: libdb_dotnet60 (in libdb_dotnet60.dll) Version: 6.0.20.0

# Syntax

C#
    public uint ThreadCount { get; set; }

Visual Basic (Declaration)
    Public Property ThreadCount As UInteger

Visual C++
    public:
    property unsigned int ThreadCount {
    	unsigned int get ();
    	void set (unsigned int value);
    }

# Remarks

ThreadCount must set if FailCheck()()() will be used. ThreadCount does not set the maximum number of threads but is used to determine memory sizing and the thread control block reclamation policy.

If a process has not configured ThreadIsAlive, and then attempts to join a database environment configured for failure checking with FailCheck()()(), SetThreadID, ThreadIsAlive and ThreadCount, the program may be unable to allocate a thread control block and fail to join the environment. This is true of the standalone Berkeley DB utility programs. To avoid problems when using the standalone Berkeley DB utility programs with environments configured for failure checking, incorporate the utility's functionality directly in the application, or call FailCheck()()() before running the utility.

# See Also

DatabaseEnvironmentConfig Class
BerkeleyDB Namespace