Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Multithreading


Message #1 by "SG" <s_ghory@y...> on Thu, 14 Mar 2002 05:57:43
Since I am not too familiar with multithreading, I cannot give you
any details regarding this.  My only suggestion would be to
write a separate application which captures and stores
the messages into a database, flat file, or some other
message queue which your main program picks up and 
processes at its own leisure.  This way you can invoke
multiple copies of your applications to listen on 
different ports and such.

Hope this helps,

Cardyin

-----------------------------------------
Cardyin Kim
Client/Server and Web Development Analyst
San Antonio Community Hospital
Upland, California
ckim@s...        (xxx) xxx-xxxx
-----------------------------------------


-----Original Message-----
From: SG [mailto:s_ghory@y...]
Sent: Wednesday, March 13, 2002 9:58 PM
To: professional vb
Subject: [pro_vb] Multithreading


Hi all!
I'm having a project which is a Client-server application.It's a standard 
exe project in VB 6.0 using winsock control.The client can send multiple 
messages to server at a time.....problem is that when client sends a 
message to server,'DataArrival' method at server end is invoked & until 
and unless this method is finished,server can not receive any other 
message coz it is not multithreaded at the moment.

So, how can server receive another message while one message is already in 
process?
Do I've to use ActiveX Exe project in this case to implement 
multithreading?
Or is there any other way for the required functionality?
Can CoffeePot example has to do something with it as Christopher Tacke 
suggested?

PLz respond ASAP...........it's extreeeeeeeeeemly urgent!!!
Regards,
SG



> 
> You can do multithreading in another way, and really well.  MSDN
> (shockingly) has a really good example called CoffeePot that has
> multithreading with inter-thread communication.  It's a great sample
> that you should work through if you're serious about multithreading.
> 
> 
> -------------------------------
> Christopher Tacke, MCSD
> President, IDSS, Inc. www.innovativedss.com
> 

to unsubscribe send a blank email to ..

  Return to Index