• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java synchronized- Account Update

 
pradeep gamage
Ranch Hand
Posts: 85
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my project i have to update user account. in account table, there is a accountBalance feild. i have to update it asynchronized way. so I have used ExecutorService Java interface.



but some time accountbalance not update correct value. when i remove thread part its work fine. I haven't any idea how i can fix this matter. Please give me Your valuable idea to fix this issue.
Thanks in advance...
 
Lanny Gilbert
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post more code.. This doesn't show us enough to help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic