System.Win.ScktComp.TServerWinSocket.ActiveThreads
Delphi
property ActiveThreads: Integer read GetActiveThreads;
C++
__property int ActiveThreads = {read=GetActiveThreads, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TServerWinSocket |
Description
Indicates the number of TServerClientThread objects currently in use by the socket connections listed in the Connections array.
Use ActiveThreads to monitor thread usage by the listening socket. If ActiveThreads is usually much higher than ThreadCacheSize, increasing ThreadCacheSize should improve performance. To determine whether ThreadCacheSize is too high, use the IdleThreads property.
When the ServerType property is stThreadBlocking, each client connection automatically spawns a thread which is added to the cache and counted by ActiveThreads.