inter process communication
My code about generate requests simulation, I have to send 400 requests from client to server , I used TCP connection but in some times the server waite from client and the client also waite the response from the server ?
should I use inter-process communication between client and server ,How can I implemnt this .
for (int i=0;i<=400)
//send object to server
//receive response object from the server
I have to generate my requests exponintially.
simple server prototyping
I cannot get Pat's response to show in the thread view but yes, we can code them as separated code units. I sortof had the design idea of a single static access method with some tricky but simple logic so that two threads are running and we have to deal with the synchronized and volatile and so on. That accomplishes several things. First,... we get off of other people's hardware and help departments. Second,... we have to work out the access logic and that brings a conceptual understanding of a process running full duplex ( something that is addressed in a grossly inadequate manner in the plethora of books commonly available ) and Thirdly,... we can now do feasiblity studies on how and if the app will scale when an if someone who knows nothing about techie trys to ship the app to a powerful server..,
Pat, note that I cannot see your full counter-response while authoring this. We may have lost OP,... in which case we may direct poster to the server that ships with the sample code.