Re: [twsocket] threading framework

2006-10-29 Thread Fastream Technologies
Hello Abdullah,

You really do not need threads for client side sockets with ICS. Take a look 
at async examples. ICS is actually slower with MT due to thread 
synchronization routines.

Best Regards and Eid Mubarak,

SZ

- Original Message - 
From: Abdullah AlQasim [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, October 29, 2006 7:21 AM
Subject: [twsocket] threading framework


: Hi All,
:
: I am building TCP and HTTP client that received high speed stream data
: from Java socket server.  I need to build a real threading CLIENT
: include a socket component.
:
: my digram of receiving data :
:
: Server(Java)   Client  Parsing Data  GUI
:
: I need your help of simple multi-threading framework that I can start
: with  I read a lots of articles and tips for Delphi Threading but I
: am relay confused of how to use TWSocket with multi-threading in client
: side.
:
: Thank you in advanced for your help.
:
: Abdullah
:
: -- 
: 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


Re: [twsocket] threading framework

2006-10-29 Thread Francois PIETTE
 I am building TCP and HTTP client that received high speed stream data
 from Java socket server.  I need to build a real threading CLIENT
 include a socket component.

 my digram of receiving data :

 Server(Java)   Client  Parsing Data  GUI

 I need your help of simple multi-threading framework that I can start
 with  I read a lots of articles and tips for Delphi Threading but I
 am relay confused of how to use TWSocket with multi-threading in client
 side.

Before entering in long explanations, would you please explain why you think 
you need multithreading ? Multithreading is not the universal solution and 
frequently people think they need it while they don't. Misused 
multithreading simply slow down overall system !

Remember that ICS socket is an asynchonous non-blocking event driven 
component. It doesn't require multithreading to have responsive 
applications. Specially a client side.

This being said: high speed data stream from Java socket server doesn't 
mean much. Java is by nature a slow system and the stream speed can't be 
faster than the slowest network speed you have between the client and the 
server. Network speed is composed of a lot of items. If you have a xDSL 
connection, this will probably be the slowest part. If you have a gigabit 
LAN, probably your network card will be the slowest. And of course if the 
server application is not able to sustain the physical network thruput, this 
will be the limiting factor.

To come back to your client application, it is likely that the GUI is the 
slowest part, except maybe the parsing and processing of data. You will 
probably need at most one worker thread beside the main thread.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
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


Re: [twsocket] threading framework

2006-10-29 Thread Abdullah AlQasim
Dear SZ,

 MailSndAsync demo is very useful and include nice and clean code.

 Thank you and Eid Mubarak.

Abdullah


Fastream Technologies wrote:
 Hello Abdullah,

 You really do not need threads for client side sockets with ICS. Take a look 
 at async examples. ICS is actually slower with MT due to thread 
 synchronization routines.

 Best Regards and Eid Mubarak,

 SZ

 - Original Message - 
 From: Abdullah AlQasim [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Sunday, October 29, 2006 7:21 AM
 Subject: [twsocket] threading framework


 : Hi All,
 :
 : I am building TCP and HTTP client that received high speed stream data
 : from Java socket server.  I need to build a real threading CLIENT
 : include a socket component.
 :
 : my digram of receiving data :
 :
 : Server(Java)   Client  Parsing Data  GUI
 :
 : I need your help of simple multi-threading framework that I can start
 : with  I read a lots of articles and tips for Delphi Threading but I
 : am relay confused of how to use TWSocket with multi-threading in client
 : side.
 :
 : Thank you in advanced for your help.
 :
 : Abdullah
 :
 : -- 
 : 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