RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerWinSocket.ActiveThreads Property

Indicates the number of TServerClientThread objects currently in use by the socket connections listed in the Connections array.

Pascal
property ActiveThreads: Integer;
C++
__property int ActiveThreads;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!