Skip to content
#

banking-applications

Here are 162 public repositories matching this topic...

由于引入多线程环境:开始的业务层单例是一个以时间换取空间的策略。先在业务多个用户登录,业务层处理存在排队现象 现在业务层取消单例,让每个用户拥有独有的业务服务 问题: 1.一个账号多人请求登录,出现多账号在线。应用dao层对象池保存登录用户信息HashMap<username,userFile> - dao层注册于登录前需要先判断user_pool while(uers.get(username) != null) 2.多个账号同时给一个账号转账时,会出现getMoney(),setMoney()的线程安全问题。 - 给改变ProperFiePo对象的money值的都加同步锁synchronized,防止多线程操作 - 而用户名密码,因为用了user_pool控制,有且仅有一个相同用户…

  • Updated Jul 22, 2018
  • Java

Improve this page

Add a description, image, and links to the banking-applications topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the banking-applications topic, visit your repo's landing page and select "manage topics."

Learn more