RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerSocketThread.ThreadCacheSize Property

Indicates the number of TServerSocketThread objects cached for reuse by new connections to client sockets.

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

Set ThreadCacheSize to specify the number of threads that are cached for reuse. The ideal value for ThreadCacheSize depends on the number and frequency of client socket requests received by the server socket. If ThreadCacheSize is too low, the server socket will spend more time freeing and creating threads when client connections are accepted. If ThreadCacheSize is too high, the server socket may unnecessarily lock up the memory for threads that are never reused. 

 

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