• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Object Confusion

 
raj varma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!