Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

client/server multithreads

Status
Not open for further replies.

leangross

IS-IT--Management
Jul 3, 2002
84
PH
hope someone could explain to me idea behind the concept of client/server application.

ex.
Client sends several files to the listener application on the server one by one and waits for the response from the server before it sends the next file.

Server application will process each file from the client and sends back a reply to client after each successful file processing. listener app should wait until all files are process sent by the client.

My question is how do the listener applciation determine if the request from the client is a new request or if it should be running on the same thread... assuming that the server application accepts multithreads.. meaning two separate clients can send files to the server at the same time.


Many thanks!
 
Your first example is an example of a synchronous application, meaning that the server application recieves a request processes it and then moves on to the next request. Your question illustrates an example of an asynchronous application, meaning that the server application will recieve a request and process it, but while processing it, it continues to listen for additional incoming requests. As far as keeping track of which thread is which, this isn't something you have to concern yourself with, the framework handles it for you automatically.

Hope this helps,

-Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top