Hello, ----- Original Message ----- From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" <[email protected]> Sent: Friday, December 23, 2005 5:16 PM Subject: Re: [twsocket] Cannot create a hidden windows for TWSocket
> Fastream Technologies wrote: >>> I have no file pointers. Also in my architecture, I create in the main >>> listener thread, ThreadAttach in the worker thread context > > If you have multiple instances per thread, are all instances created > at the same time? How do you wait in the listener thread until a > instance has attached successfully? No, the client objects are assigned to the worker thread when clients come, one-by-one. There is a thread manager that returns the same thread for every 32 clients and load-balances among threads as well. For example if a thread has 5 clients and the other 13, the one with 5 clients is assigned until it reaches 13. > >> and never >>> threaddetach, instead just destroy in the worker thread. > > And the client list is updated in the listener thread how is this > synchronized? Usually you detach in the worker thread and destroy the > client socket in listener thread. We have a critical section for this purpose. I would like to destroy the client in the worker thread for extra performance. Is this the problem, do you think? Best Regards, SZ > >> Could this be >>> the problem? >>> >>> Best Regards, >>> >>> SubZero > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
