[Migrated content. Thread originally posted on 23 July 2009]
Current Implementation: Server socket (created using C$Socket library) listens continuously. Client connects to the server socket, sends 1 claim, the claim is processed, and response is sent back to the client. So, only one client connects at 1 time and only 1 claim is processed per connection.Proposed Implementation: To allow multiple clients to connect using 1 server socket and process multiple claims at the same time. Each client connection will send only one claim so that TCP/IP session management is used.
Challenge: At this point in time, we are able to read multiple client claims/transactions using 1 server socket (C$Socket). We have created multiple threads to process the read claim data at the same time. Based on the code developed so far, the first claim is send to the first thread but the second claim although successfully read from the socket and available is not send to the second available thread until the first thread has complete its processing. As a result we are unable to achieve parallel claim processing. Please see that we are using arrays to read claims and pass them to available threads. These arrays are shared between the threads and the main process.
QUESTIONS:
1. How to use multiple threads to process parallel claims/transactions? Is this possible in ACUCOBOL-GT? Please provide sample code that performs such an operation.
More information:
UNIX server runs HPUX B.11.23 U ia64. operating system
ACUCOBOL-GT Runtime Version: 7.0.1 and patch set 820
AcuConnect - Thin Client Version: 7.0.1
Communication protocol used - TCP/IP



