| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Control Thread creation in Sockets.Net Server |
| MartenKL From: STOCKHOLM, Sweden Posts: 8 Member Since: 03/03/05 |
posted March 3, 2005 4:46 AM Is there any way to have new threads created by client-connections created in STA model as UI threads? Currently my asynchronous application seems to jump between threads for a single connection when receiving data, I would like to assure that every single connection maintains a single thread that has a message loop running. All the samples I have from you is synchronous and does not easily implement heartbeats and other recurring events. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 3, 2005 8:56 AM Are you setting the SynchronizingObject property? |
| MartenKL From: STOCKHOLM, Sweden Posts: 8 Member Since: 03/03/05 |
posted March 3, 2005 8:57 AM No I didn't think I should since it should be multithreaded. |
| MartenKL From: STOCKHOLM, Sweden Posts: 8 Member Since: 03/03/05 |
posted March 3, 2005 9:50 AM Since Threads are created in the threadpool there seems to be a limit to number of concurrent connections corresponding to 25/logical processor where 25 is the default max number of pooled threads in .Net. I do not wish to alter this default value, I want my threads(connections) to be created outside the threadpool. Surely the servercomponent can't be meant to only be ably to serve 25 clients per processor. |
| MartenKL From: STOCKHOLM, Sweden Posts: 8 Member Since: 03/03/05 |
posted March 3, 2005 10:45 AM I have seen that you ask for code for recreating the problem. Just use your own examples, echoserver and tcp client. Now try to establish more than 25x(logical processor count) connections. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 3, 2005 10:48 AM You might want to look at this thread: http://support.dart.com/postings?topicid=2821 |
| MartenKL From: STOCKHOLM, Sweden Posts: 8 Member Since: 03/03/05 |
posted March 3, 2005 11:11 AM So there is no way of having the threads created outside the threadpool? The link provided in the thread you are referring to is outdated and does not work, I can't find out how to change the property CorSetMaxThreads or anything like it. Where can I find this? Also I must agree with cambler/Christopher that this is a failing in your product. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted March 3, 2005 11:13 AM Hi, The new link to Mark Woodring's thread pool samples referenced in the forum thread Tony mentions is: http://www.bearcanyon.com/dotnet -ken |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|