Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pls help,bank transaction problem  RSS feed

 
Amit Saste
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i am doing project of ank transaction system.i want the situation like,if more than one user try to make operations on the same account,like depositing amount in same account and transferring amount from same account to some other account,there must be some of the procedures to stop simultaneous resource allocation.that is there should not be deadlock.
what can i do to prevent this.if this can be done by using synchronization,pls tell me how.Pls give me small example.
thanks for reading.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you working the same problem as Tom?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!