NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: DonnEdwards on April 28, 2021, 01:06:07 AM

Title: Thread Pool vs Thread Number
Post by: DonnEdwards on April 28, 2021, 01:06:07 AM
I am puzzled by some of the diagnostic information on my NT Webserver app.

On the "Performance" page it shows a thread pool of zero. On the "Log" page it shows thread numbers of 0, 3 and 4.

Are these different concepts?

The reason I ask is that I'm getting a "Memory block free'd twice" random error on my internet-facing server app and I'm wondering if there is some default I need to fix.
Title: Re: Thread Pool vs Thread Number
Post by: Vinnie on April 28, 2021, 02:27:34 AM
Hi Don.
Thread Pools are Threads which can be opened in advanced of being required.

Threads are the number of threads currently open.

In most cases Thread Pools is NOT required because threads are opened and closed quickly.

If your system is complex (many Data Files) or slow, Thread pools can be opened in advanced and can be used later which will save time opening the new thread when the request arrives.

Hope I have explained OK.
Title: Re: Thread Pool vs Thread Number
Post by: Bruce on April 28, 2021, 03:21:00 AM
spot on Vinnie.

for more on thread pools see;
https://www.capesoft.com/docs/NetTalk12/NetTalkWebBasic.htm#ThreadPools
Title: Re: Thread Pool vs Thread Number
Post by: DonnEdwards on April 28, 2021, 04:04:49 AM
Thanks Vinnie and Bruce.
I guess RTFM is in order  8)