Hello all, I have developed 1 server application where all client connects.Server keeps record thier login time and logout time. For each client connection to server, ananymous runnable thread object is created which serve the client indpendently. When 2 client connects the server at the same time, two different records with same login time is created Here up to all works well, but when these two client logout at the SAME time ,only one record is updated with logout time and not the other. How do I solve the problem ?
Peter den Haan
posted 14 years ago
Originally posted by raj varma: How do I solve the problem ?
You don't give enough information by far, unfortunately. Specifically, you say almost nothing about that record which you keep. For all I know you could be using the time as the primary key in a database. - Peter